summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/logging/encoders.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/logging/encoders.go b/modules/logging/encoders.go
index ab68f5e..40e86bd 100644
--- a/modules/logging/encoders.go
+++ b/modules/logging/encoders.go
@@ -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
}