File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,18 @@ import (
1212
1313// Config holds the logging configuration
1414type Config struct {
15- Level string `yaml :"level"`
16- Output string `yaml :"output"`
17- File FileConfig `yaml :"file"`
15+ Level string `mapstructure :"level"`
16+ Output string `mapstructure :"output"`
17+ File FileConfig `mapstructure :"file"`
1818}
1919
2020// FileConfig holds file-specific logging configuration
2121type FileConfig struct {
22- Path string `yaml :"path"`
23- MaxSizeMB int `yaml :"max_size_mb"`
24- MaxBackups int `yaml :"max_backups"`
25- MaxAgeDays int `yaml :"max_age_days"`
26- Compress bool `yaml :"compress"`
22+ Path string `mapstructure :"path"`
23+ MaxSizeMB int `mapstructure :"max_size_mb"`
24+ MaxBackups int `mapstructure :"max_backups"`
25+ MaxAgeDays int `mapstructure :"max_age_days"`
26+ Compress bool `mapstructure :"compress"`
2727}
2828
2929var (
You can’t perform that action at this time.
0 commit comments