2018-10-10 19:41:46 +00:00
|
|
|
package logger
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.uber.org/zap/zapcore"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Config struct {
|
2019-05-31 20:45:40 +00:00
|
|
|
Format string `toml:"format"`
|
|
|
|
Level zapcore.LevelEnabler `toml:"level"`
|
|
|
|
SuppressLogo bool `toml:"suppress-logo"`
|
2018-10-10 19:41:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewConfig returns a new instance of Config with defaults.
|
|
|
|
func NewConfig() Config {
|
|
|
|
return Config{
|
|
|
|
Format: "auto",
|
2019-05-31 20:45:40 +00:00
|
|
|
Level: zapcore.Level(0),
|
2018-10-10 19:41:46 +00:00
|
|
|
}
|
|
|
|
}
|