config.go 473 B

123456789101112
  1. package logx
  2. // A LogConf is a logging config.
  3. type LogConf struct {
  4. ServiceName string `json:",optional"`
  5. Mode string `json:",default=console,options=console|file|volume"`
  6. Path string `json:",default=logs"`
  7. Level string `json:",default=info,options=info|error|severe"`
  8. Compress bool `json:",optional"`
  9. KeepDays int `json:",optional"`
  10. StackCooldownMillis int `json:",default=100"`
  11. }