Update logger to allow a more generic level. (#14040)
parent
fb9536285b
commit
c786b0a69f
|
@ -5,14 +5,15 @@ 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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewConfig returns a new instance of Config with defaults.
|
// NewConfig returns a new instance of Config with defaults.
|
||||||
func NewConfig() Config {
|
func NewConfig() Config {
|
||||||
return Config{
|
return Config{
|
||||||
Format: "auto",
|
Format: "auto",
|
||||||
|
Level: zapcore.Level(0),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue