Skip to content
Snippets Groups Projects
Commit 824a48cc authored by Dan Lorenc's avatar Dan Lorenc
Browse files

One more small tweak to our zap logging config.

The special keys "message" and "severity" are used to filter by default in the UI.
parent b51552e1
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