Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelTrace = "TRACE" LevelDebug = "DEBUG" LevelInfo = "INFO" LevelWarn = "WARN" LevelError = "ERROR" LevelPanic = "PANIC" LevelFatal = "FATAL" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Level string `desc:"TRACE, DEBUG, INFO, WARN, ERROR, PANIC, FATAL"` Stdout bool `desc:"enable output to stdout"` Name string `desc:"Name for file. Destination file name: <name>.log"` Folder string `desc:"folder for log files"` MaxSizeMB int `desc:"max size of active log file in MB"` MaxAgeDays int `desc:"max age days of backups files"` MaxBackups int `desc:"max backups count"` Compress bool `desc:"compress backups files"` // contains filtered or unexported fields }
Config for zerolog logger
Click to show internal directories.
Click to hide internal directories.