change log
This commit is contained in:
@@ -90,6 +90,17 @@ type LoggerConfig struct {
|
||||
Compress bool `mapstructure:"compress"` // 是否压缩
|
||||
UseColor bool `mapstructure:"use_color"` // 是否使用彩色输出
|
||||
UseDaily bool `mapstructure:"use_daily"` // 是否按日分包
|
||||
// 按级别分文件配置
|
||||
EnableLevelSeparation bool `mapstructure:"enable_level_separation"` // 是否启用按级别分文件
|
||||
LevelConfigs map[string]LevelFileConfig `mapstructure:"level_configs"` // 各级别配置
|
||||
}
|
||||
|
||||
// LevelFileConfig 单个级别文件配置
|
||||
type LevelFileConfig struct {
|
||||
MaxSize int `mapstructure:"max_size"` // 单个文件最大大小(MB)
|
||||
MaxBackups int `mapstructure:"max_backups"` // 最大备份文件数
|
||||
MaxAge int `mapstructure:"max_age"` // 最大保留天数
|
||||
Compress bool `mapstructure:"compress"` // 是否压缩
|
||||
}
|
||||
|
||||
// JWTConfig JWT配置
|
||||
|
||||
Reference in New Issue
Block a user