16 lines
340 B
Go
16 lines
340 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.LevelError),
|
|
Format: InterpolatedString(logger.FormatHuman),
|
|
}
|
|
}
|