Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvPrefix string = "SPARKLEMUFFIN" DefaultConfigPath string = "/etc" ConfigName string = "sparklemuffin" )
View Source
const ( // Format log messages as pretty-printed key-value pairs. LogFormatConsole = "console" // Format log messages as JSON documents. LogFormatJSON = "json" )
Variables ¶
View Source
var ( // Available logger levels. LogLevelValues = []string{ zerolog.LevelTraceValue, zerolog.LevelDebugValue, zerolog.LevelInfoValue, zerolog.LevelWarnValue, zerolog.LevelErrorValue, zerolog.LevelFatalValue, zerolog.LevelPanicValue, } )
Functions ¶
func SetupGlobalLogger ¶
SetupGlobalLogger configures the global zerolog.Logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.