初始化2

This commit is contained in:
SunYF
2026-08-28 15:06:01 +08:00
parent b34325a16f
commit a9c3fbeb41
537 changed files with 176215 additions and 17 deletions
+16
View File
@@ -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"`
}