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"`
|
2021-03-20 16:36:19 +08:00
|
|
|
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"`
|
|
|
|
}
|