Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLogging ¶
Types ¶
type Config ¶
type Config struct { // Write to file? if not provided not writing to file Filename string `yaml:"filename,omitempty"` // Time to wait until old logs are purged. By default no logs are purged MaxAge time.Duration `yaml:"maxAge,omitempty"` // MaxSize is the maximum size of the file in MB MaxSize int `yaml:"maxSize,omitempty"` // Write caller file:line and package.function on log entries ReportCaller bool `yaml:"reportCaller,omitempty"` // one of trace, debug, info, warn, warning, error, fatal, panic Level string `yaml:"level,omitempty"` }
Click to show internal directories.
Click to hide internal directories.