Skip to content
Snippets Groups Projects
Unverified Commit e9d55006 authored by dlorenc's avatar dlorenc Committed by GitHub
Browse files

Merge pull request #137 from dlorenc/logfix

One more small tweak to our zap logging config.
parents b51552e1 824a48cc
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,8 @@ func ConfigureLogger(logType string) {
var cfg zap.Config
if logType == "prod" {
cfg = zap.NewProductionConfig()
cfg.EncoderConfig.LevelKey = "severity"
cfg.EncoderConfig.MessageKey = "message"
} else {
cfg = zap.NewDevelopmentConfig()
cfg.EncoderConfig.EncodeLevel = zapcore.CapitalColorLevelEncoder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment