Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
logging: Actually use `level_key` (#4189)
Francis Lavoie committed
Jun 4, 2021 at 16:15 UTC
94b712009a52fd2dba6295667d359a9a3c952d31
1 file changed
+3
modules/logging/encoders.go
+3
@@ -264,6 +264,9 @@ func (lec *LogEncoderConfig) ZapcoreEncoderConfig() zapcore.EncoderConfig {
264
if lec.MessageKey != nil {
265
cfg.MessageKey = *lec.MessageKey
266
}
267
+ if lec.LevelKey != nil {
268
+ cfg.LevelKey = *lec.LevelKey
269
+ }
270
if lec.TimeKey != nil {
271
cfg.TimeKey = *lec.TimeKey
272
}