19 lines
343 B
Go
19 lines
343 B
Go
|
package logger
|
||
|
|
||
|
import (
|
||
|
"go.uber.org/zap/zapcore"
|
||
|
)
|
||
|
|
||
|
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",
|
||
|
}
|
||
|
}
|