Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeAppLogLevel ¶
func InitAppLogger ¶
Types ¶
type Config ¶
type Config struct { // Log level. // One of "debug", "info", "warn", "error", "dpanic", "panic", and "fatal". Level string `toml:"level" json:"level"` // Log filename, leave empty to disable file log. File string `toml:"file" json:"file"` // Max size for a single file, in MB. FileMaxSize int `toml:"max-size" json:"max-size"` // Max log keep days, default is never deleting. FileMaxDays int `toml:"max-days" json:"max-days"` // Maximum number of old log files to retain. FileMaxBackups int `toml:"max-backups" json:"max-backups"` }
Config serializes log related config in toml/json.
Click to show internal directories.
Click to hide internal directories.