go-zero/core/logx/config.go

14 lines
520 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"`
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"`
Compress bool `json:",optional"`
KeepDays int `json:",optional"`
StackCooldownMillis int `json:",default=100"`
}