Skip to content

Commit

Permalink
Change output to stdout not stderr for config (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmussett authored Oct 23, 2024
1 parent 93d24bc commit 7823f25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions support/log/zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ func newZapLogger(logFormat Format, level Level) (*zap.Logger, *zap.AtomicLevel,
cfg := zap.NewProductionConfig()
cfg.DisableCaller = true

cfg.OutputPaths = []string{"stdout"}

eCfg := cfg.EncoderConfig
eCfg.TimeKey = "timestamp"
eCfg.EncodeTime = zapcore.ISO8601TimeEncoder
Expand Down

0 comments on commit 7823f25

Please sign in to comment.