Skip to content

Commit

Permalink
pipe all log messages to stdout for dev logger
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <bcallaway@google.com>
  • Loading branch information
bobcallaway committed Jul 6, 2022
1 parent 5a9480e commit 92b71b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func ConfigureLogger(logType string) {
} else {
cfg = zap.NewDevelopmentConfig()
cfg.EncoderConfig.EncodeLevel = zapcore.CapitalColorLevelEncoder
cfg.OutputPaths = []string{"stdout"}
}
logger, err := cfg.Build()
if err != nil {
Expand Down

0 comments on commit 92b71b6

Please sign in to comment.