Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = logger.Logger
View Source
var PythonPriorityMap = PriorityMap{
"CRITICAL": PriCrit,
"ERROR": PriErr,
"WARNING": PriWarning,
"INFO": PriInfo,
"DEBUG": PriDebug,
}
PythonPriorityMap maps Python logging levels to syslog severity levels. https://docs.Python.org/3/library/logging.html#levels
View Source
var ZerologPriorityMap = PriorityMap{ zerolog.LevelTraceValue: PriDebug, zerolog.LevelDebugValue: PriDebug, zerolog.LevelInfoValue: PriInfo, zerolog.LevelWarnValue: PriWarning, zerolog.LevelErrorValue: PriErr, zerolog.LevelFatalValue: PriCrit, zerolog.LevelPanicValue: PriCrit, }
ZerologPriorityMap maps zerolog logging levels to syslog severity levels. https://pkg.go.dev/github.com/rs/zerolog#pkg-variables
Functions ¶
Types ¶
type PriorityMap ¶
type PriorityMap map[any]Priority
func (PriorityMap) Get ¶
func (m PriorityMap) Get(v any) Priority
Click to show internal directories.
Click to hide internal directories.