初始化2
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package logx
|
||||
|
||||
// LogConf 按天日志配置
|
||||
type LogConf struct {
|
||||
Level string `json:",default=INFO"`
|
||||
Format string `json:",default=text"`
|
||||
TimeFormat string `json:",default=2006-01-02 15:04:05"`
|
||||
Filename string `json:",default=bj_power_mes.log"`
|
||||
Daily bool `json:",default=true"`
|
||||
MaxSize int `json:",default=100"`
|
||||
MaxBackups int `json:",default=10"`
|
||||
MaxAge int `json:",default=30"`
|
||||
Compress bool `json:",default=true"`
|
||||
Console bool `json:",default=true"`
|
||||
AddSource bool `json:",default=false"`
|
||||
}
|
||||
Reference in New Issue
Block a user