Update logger to allow a more generic level. (#14040)
parent
fb9536285b
commit
c786b0a69f
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Format string `toml:"format"`
|
Format string `toml:"format"`
|
||||||
Level zapcore.Level `toml:"level"`
|
Level zapcore.LevelEnabler `toml:"level"`
|
||||||
SuppressLogo bool `toml:"suppress-logo"`
|
SuppressLogo bool `toml:"suppress-logo"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,5 +14,6 @@ type Config struct {
|
||||||
func NewConfig() Config {
|
func NewConfig() Config {
|
||||||
return Config{
|
return Config{
|
||||||
Format: "auto",
|
Format: "auto",
|
||||||
|
Level: zapcore.Level(0),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue