summaryrefslogtreecommitdiff
path: root/logging.go
diff options
context:
space:
mode:
Diffstat (limited to 'logging.go')
-rw-r--r--logging.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/logging.go b/logging.go
index a70a7ea..c29a0fa 100644
--- a/logging.go
+++ b/logging.go
@@ -577,6 +577,7 @@ func newDefaultProductionLog() (*defaultCustomLog, error) {
return nil, err
}
encCfg := zap.NewProductionEncoderConfig()
+ encCfg.EncodeLevel = zapcore.CapitalColorLevelEncoder
cl.encoder = zapcore.NewConsoleEncoder(encCfg)
cl.levelEnabler = zapcore.InfoLevel