mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
logging: Tweak defaults (enable logging by default, color level enc.)
This commit is contained in:
parent
54e458b756
commit
c4c45f8e01
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue