Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VERSION string = "0.0.1"
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
Create *zerolog.Logger
Config *LogConfig
// contains filtered or unexported fields
}
func (*Log) AsyncStart ¶
type LogConfig ¶
type LogConfig struct {
LogLevel int `yaml:"loglevel"`
ConsoleLoggingEnabled bool `yaml:"consoleloggingenabled"`
EncodeLogsAsJson bool `yaml:"encodelogasjson"`
FileLoggingEnabled bool `yaml:"fileloggingenabled"`
FileLoggingDirectory string `yaml:"fileloggingdirectory"`
FileLoggingFilename string `yaml:"fileloggingfilename"`
FileLoggingMaxSize int `yaml:"fileloggingmaxsize"`
FileLoggingMaxBackups int `yaml:"fileloggingmaxbackups"`
FileLoggingMaxAge int `yaml:"fileloggingmaxage"`
}
func (*LogConfig) GetLogLevel ¶
panic (zerolog.PanicLevel, 5) fatal (zerolog.FatalLevel, 4) error (zerolog.ErrorLevel, 3) warn (zerolog.WarnLevel, 2) info (zerolog.InfoLevel, 1) debug (zerolog.DebugLevel, 0) trace (zerolog.TraceLevel, -1)
Click to show internal directories.
Click to hide internal directories.