log.go 739 B

12345678910111213
  1. package config
  2. type Log struct {
  3. Level string `mapstructure:"level" json:"level" yaml:"level"`
  4. RootDir string `mapstructure:"root_dir" json:"root_dir" yaml:"root_dir"`
  5. Filename string `mapstructure:"filename" json:"filename" yaml:"filename"`
  6. Format string `mapstructure:"format" json:"format" yaml:"format"`
  7. ShowLine bool `mapstructure:"show_line" json:"show_line" yaml:"show_line"`
  8. MaxBackups int `mapstructure:"max_backups" json:"max_backups" yaml:"max_backups"`
  9. MaxSize int `mapstructure:"max_size" json:"max_size" yaml:"max_size"` // MB
  10. MaxAge int `mapstructure:"max_age" json:"max_age" yaml:"max_age"` // day
  11. Compress bool `mapstructure:"compress" json:"compress" yaml:"compress"`
  12. }