mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
bf2feee5b7
* feat: implement console plain output for debug logs * chore: rename console encoding to plain * chore: refactor names
15 lines
596 B
Go
15 lines
596 B
Go
package logx
|
|
|
|
// A LogConf is a logging config.
|
|
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"`
|
|
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"`
|
|
}
|