Skip to content

Commit

Permalink
use "timestamp" key instead of "time"
Browse files Browse the repository at this point in the history
This is in accordance with the StackDriver documentation:

https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry

fixes #15
  • Loading branch information
JeanMertz committed Oct 28, 2019
1 parent f0a7456 commit fc8725b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var logLevelSeverity = map[zapcore.Level]string{
// encoderConfig is the default encoder configuration, slightly tweaked to use
// the correct fields for Stackdriver to parse them.
var encoderConfig = zapcore.EncoderConfig{
TimeKey: "time",
TimeKey: "timestamp",
LevelKey: "severity",
NameKey: "logger",
CallerKey: "caller",
Expand Down

0 comments on commit fc8725b

Please sign in to comment.