mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-06 12:54:40 +08:00
logging: Tweak defaults (enable logging by default, color level enc.)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user