feat: add log debug level (#2411)

This commit is contained in:
MarkJoyMa
2022-09-20 07:50:11 +08:00
committed by GitHub
parent 4c927624b0
commit e6aa6fc361
8 changed files with 153 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ type LogConf struct {
Encoding string `json:",default=json,options=[json,plain]"`
TimeFormat string `json:",optional"`
Path string `json:",default=logs"`
Level string `json:",default=info,options=[info,error,severe]"`
Level string `json:",default=info,options=[debug,info,error,severe]"`
Compress bool `json:",optional"`
KeepDays int `json:",optional"`
StackCooldownMillis int `json:",default=100"`