William Petit
e66938f1d3
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
16 lines
339 B
Go
16 lines
339 B
Go
package config
|
|
|
|
import "gitlab.com/wpetit/goweb/logger"
|
|
|
|
type LoggerConfig struct {
|
|
Level InterpolatedInt `yaml:"level"`
|
|
Format InterpolatedString `yaml:"format"`
|
|
}
|
|
|
|
func NewDefaultLoggerConfig() LoggerConfig {
|
|
return LoggerConfig{
|
|
Level: InterpolatedInt(logger.LevelInfo),
|
|
Format: InterpolatedString(logger.FormatHuman),
|
|
}
|
|
}
|