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{
|
2023-06-30 18:26:27 +02:00
|
|
|
Level: InterpolatedInt(logger.LevelError),
|
2023-04-24 20:52:12 +02:00
|
|
|
Format: InterpolatedString(logger.FormatHuman),
|
|
|
|
}
|
|
|
|
}
|