Update logger to allow a more generic level. (#14040)

pull/14045/head
Lyon Hill 2019-05-31 14:45:40 -06:00 committed by GitHub
parent fb9536285b
commit c786b0a69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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),
}
}