diff --git a/logger/config.go b/logger/config.go index 210ebc1ce7..d7014b1b2a 100644 --- a/logger/config.go +++ b/logger/config.go @@ -5,14 +5,15 @@ import ( ) type Config struct { - Format string `toml:"format"` - Level zapcore.Level `toml:"level"` - SuppressLogo bool `toml:"suppress-logo"` + Format string `toml:"format"` + Level zapcore.LevelEnabler `toml:"level"` + SuppressLogo bool `toml:"suppress-logo"` } // NewConfig returns a new instance of Config with defaults. func NewConfig() Config { return Config{ Format: "auto", + Level: zapcore.Level(0), } }