Skip to content

Commit

Permalink
Update logger to allow a more generic level. (influxdata#14040)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyondhill authored May 31, 2019
1 parent fb95362 commit c786b0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions logger/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

0 comments on commit c786b0a

Please sign in to comment.