mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-25 02:08:44 +08:00
52b4f8ca91
* add timezone and timeformat * rm time zone and keep time format Co-authored-by: Tony Wang <tonywang.data@gmail.com>
14 lines
520 B
Go
14 lines
520 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"`
|
|
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"`
|
|
}
|