Documentation
¶
Index ¶
Constants ¶
const DEBUG_LEVEL int = 10
DEBUG_LEVEL is the numeric level associated with "debug" messages.
const DEBUG_PREFIX string = "🪵" // "🦜"
DEBUG_PREFIX is the string prefix to prepend "debug" messages with.
const ERROR_LEVEL int = 40
ERROR_LEVEL is the numeric level associated with "error" messages.
const ERROR_PREFIX string = "🔥"
ERROR_PREFIX is the string prefix to prepend "error" messages with.
const FATAL_LEVEL int = 50
FATAL_LEVEL is the numeric level associated with "fatal" messages.
const FATAL_PREFIX string = "💥"
FATAL_PREFIX is the string prefix to prepend "fatal" messages with.
const INFO_LEVEL int = 20
INFO_LEVEL is the numeric level associated with "info" messages.
const INFO_PREFIX string = "💬"
INFO_PREFIX is the string prefix to prepend "info" messages with.
const WARNING_LEVEL int = 30
WARNING_LEVEL is the numeric level associated with "warning" messages.
const WARNING_PREFIX string = "🧯"
WARNING_PREFIX is the string prefix to prepend "warning" messages with.
Variables ¶
This section is empty.
Functions ¶
func SetMinLevel ¶
SetMinLevel assigns the minimum log level to 'l'. Log events with a lower level will not be emitted.
func SetMinLevelWithPrefix ¶
SetMinLevelStringWithPrefix assigns the minimum log level associated with 'prefix'. Log events with a lower level will not be emitted.
func UnsetMinLevel ¶
func UnsetMinLevel()
UnsetMinLevel resets the minimum level log level allowing all messages to be emitted.
Types ¶
This section is empty.