mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
logging: Actually use level_key
(#4189)
This commit is contained in:
parent
7b500e74b4
commit
94b712009a
1 changed files with 3 additions and 0 deletions
|
@ -264,6 +264,9 @@ func (lec *LogEncoderConfig) ZapcoreEncoderConfig() zapcore.EncoderConfig {
|
|||
if lec.MessageKey != nil {
|
||||
cfg.MessageKey = *lec.MessageKey
|
||||
}
|
||||
if lec.LevelKey != nil {
|
||||
cfg.LevelKey = *lec.LevelKey
|
||||
}
|
||||
if lec.TimeKey != nil {
|
||||
cfg.TimeKey = *lec.TimeKey
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue