bouncer/internal/config/logger.go

16 lines
340 B
Go
Raw Normal View History

2023-04-24 20:52:12 +02:00
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.LevelError),
2023-04-24 20:52:12 +02:00
Format: InterpolatedString(logger.FormatHuman),
}
}