add log
This commit is contained in:
@@ -83,12 +83,13 @@ type LoggerConfig struct {
|
||||
Level string `mapstructure:"level"`
|
||||
Format string `mapstructure:"format"`
|
||||
Output string `mapstructure:"output"`
|
||||
FilePath string `mapstructure:"file_path"`
|
||||
MaxSize int `mapstructure:"max_size"`
|
||||
MaxBackups int `mapstructure:"max_backups"`
|
||||
MaxAge int `mapstructure:"max_age"`
|
||||
Compress bool `mapstructure:"compress"`
|
||||
UseColor bool `mapstructure:"use_color"`
|
||||
LogDir string `mapstructure:"log_dir"` // 日志目录
|
||||
MaxSize int `mapstructure:"max_size"` // 单个文件最大大小(MB)
|
||||
MaxBackups int `mapstructure:"max_backups"` // 最大备份文件数
|
||||
MaxAge int `mapstructure:"max_age"` // 最大保留天数
|
||||
Compress bool `mapstructure:"compress"` // 是否压缩
|
||||
UseColor bool `mapstructure:"use_color"` // 是否使用彩色输出
|
||||
UseDaily bool `mapstructure:"use_daily"` // 是否按日分包
|
||||
}
|
||||
|
||||
// JWTConfig JWT配置
|
||||
|
||||
Reference in New Issue
Block a user