Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogLevelIds = map[zerolog.Level][]string{ zerolog.PanicLevel: {"panic"}, zerolog.FatalLevel: {"fatal"}, zerolog.ErrorLevel: {"error"}, zerolog.WarnLevel: {"warn", "warning"}, zerolog.InfoLevel: {"info"}, zerolog.DebugLevel: {"debug"}, zerolog.TraceLevel: {"trace"}, }
Map zerolog levels to their textual representations
Functions ¶
func AddCommand ¶
func ConfigureLogging ¶ added in v2.3.0
func ConfigureLogging()
ConfigureLogging sets up zerolog based on command-line flags and environment variables
func SetVersionInfo ¶
func SetVersionInfo(version, commit, date string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.