summaryrefslogtreecommitdiff
path: root/logging.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-10-29 11:58:29 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-10-29 11:58:29 -0600
commitc4c45f8e01bd59b556eaa84f4d6c6ec529e01acb (patch)
treec5b51f3ca78a947b51b040641fed906d180a5682 /logging.go
parent54e458b756cf2cdb8adb750e822ead8e3a973441 (diff)
logging: Tweak defaults (enable logging by default, color level enc.)
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