You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gives Stackdriver the possibility to recognize the loglevel and can so visualize the message in a proper way in the UI and gives the posibility to filter the messages by It's severity.
I'm using log4go in GCP environment with Stackdriver logging. Formatting a log message with pattern like:
"pattern": "{\"severity\": \"%L\", \"message\":\"(%S) %M\"}"
gives Stackdriver the possibility to recognize the loglevel and can so visualize the message in a proper way in the UI and gives the posibility to filter the messages by It's severity.
Unfortunately the Log4go levelstrings defined in
log4go/log4go.go
Line 83 in 617cc1d
(https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity) so only a few severities are matched and the others are treated as "UNKOWN"
I'm looking for a possibility to overwrite the fixed levelstrings in log4go with my own levelstrings.
The text was updated successfully, but these errors were encountered: