github.com/influxdata/influxdb/v2@v2.7.6/logger/config.go (about)

     1  package logger
     2  
     3  import (
     4  	"go.uber.org/zap/zapcore"
     5  )
     6  
     7  type Config struct {
     8  	Format       string               `toml:"format"`
     9  	Level        zapcore.LevelEnabler `toml:"level"`
    10  	SuppressLogo bool                 `toml:"suppress-logo"`
    11  }
    12  
    13  // NewConfig returns a new instance of Config with defaults.
    14  func NewConfig() Config {
    15  	return Config{
    16  		Format: "auto",
    17  		Level:  zapcore.Level(0),
    18  	}
    19  }