Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Level string `yaml:"level" json:"level" default:"info" validate:"regexp=^(fatal|panic|error|warn|info|debug)$"` Encoding string `yaml:"encoding" json:"encoding" default:"json" validate:"regexp=^(json|console)$"` Filename string `yaml:"filename" json:"filename"` Compress bool `yaml:"compress" json:"compress"` MaxAge int `yaml:"maxAge" json:"maxAge" default:"15" validate:"min=1"` // days MaxSize int `yaml:"maxSize" json:"maxSize" default:"50" validate:"min=1"` // MB MaxBackups int `yaml:"maxBackups" json:"maxBackups" default:"15" validate:"min=1"` }
Config for logging
Click to show internal directories.
Click to hide internal directories.