mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 12:32:25 +00:00
zap日志的配置优化及初始化优化
This commit is contained in:
@@ -81,9 +81,11 @@ type Sqlite struct {
|
||||
}
|
||||
|
||||
type Zap struct {
|
||||
Level string `json:"level"`
|
||||
File string `json:"file"`
|
||||
MaxSize int `json:"maxsize"`
|
||||
MaxAge int `json:"max_age"`
|
||||
MaxBackups int `json:"max_backups"`
|
||||
Level string `mapstructure:"level" json:"level" yaml:"level"`
|
||||
Format string `mapstructure:"format" json:"format" yaml:"format"`
|
||||
Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"`
|
||||
Director string `mapstructure:"director" json:"director" yaml:"director"`
|
||||
LinkName string `mapstructure:"link_name" json:"linkName" yaml:"link_name"`
|
||||
ShowLine bool `mapstructure:"show_line" json:"show_line" yaml:"show_line"`
|
||||
LogInConsole bool `mapstructure:"log_in_console" json:"logInConsole" yaml:"log_in_console"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user