We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8ca5e4 commit b700357Copy full SHA for b700357
logger.go
@@ -53,7 +53,7 @@ func replacer(groups []string, a slog.Attr) slog.Attr {
53
// Rename attribute keys to match Cloud Logging structured log format
54
switch a.Key {
55
case slog.LevelKey:
56
- a.Key = "severity"
+ a.Key = "level"
57
// Map slog.Level string values to Cloud Logging LogSeverity
58
// https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity
59
if level := a.Value.Any().(slog.Level); level == slog.LevelWarn {
@@ -62,7 +62,7 @@ func replacer(groups []string, a slog.Attr) slog.Attr {
62
case slog.TimeKey:
63
a.Key = "timestamp"
64
case slog.MessageKey:
65
- a.Key = "message"
+ a.Key = "msg"
66
}
67
return a
68
0 commit comments