bouncer/internal/config/logger.go
William Petit 7cf40826a6
Some checks failed
Cadoles/bouncer/pipeline/head There was a failure building this commit
feat: initial commit
2023-05-12 15:24:37 +02:00

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),
}
}