go-zero/core/logx/config.go

15 lines
596 B
Go
Raw Normal View History

2020-07-26 17:09:05 +08:00
package logx
2021-02-20 22:45:58 +08:00
// A LogConf is a logging config.
2020-07-26 17:09:05 +08:00
type LogConf struct {
ServiceName string `json:",optional"`
Mode string `json:",default=console,options=[console,file,volume]"`
Encoding string `json:",default=json,options=[json,plain]"`
TimeFormat string `json:",optional"`
2020-07-26 17:09:05 +08:00
Path string `json:",default=logs"`
Level string `json:",default=info,options=[info,error,severe]"`
2020-07-26 17:09:05 +08:00
Compress bool `json:",optional"`
KeepDays int `json:",optional"`
StackCooldownMillis int `json:",default=100"`
}