Skip to content

Commit 46fd7cd

Browse files
committed
refactor: update logger configuration tags from yaml to mapstructure
1 parent a3ff078 commit 46fd7cd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

internal/logger/logger.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ import (
1212

1313
// Config holds the logging configuration
1414
type 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
2121
type 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

2929
var (

0 commit comments

Comments
 (0)