influxdb/logger/config.go

21 lines
438 B
Go
Raw Normal View History

package logger
import (
"go.uber.org/zap/zapcore"
)
2019-02-03 20:11:31 +00:00
// Config represents the configuration for creating a zap.Logger.
type Config struct {
Format string `toml:"format"`
Level zapcore.Level `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.InfoLevel,
}
}