Documentation
¶
Index ¶
Constants ¶
View Source
const ( // https://wiki.archlinux.org/title/Systemd/Journal#Priority_level LevelDebug = slog.LevelDebug LevelDebugStr = "DEBUG" LevelInfo = slog.LevelInfo LevelInfoStr = "INFO" LevelNotice = slog.Level(2) LevelNoticeStr = "NOTICE" LevelWarning = slog.LevelWarn LevelWarningStr = "WARNING" LevelError = slog.LevelError LevelErrorStr = "ERROR" LevelCritical = slog.Level(10) LevelCriticalStr = "CRITICAL" LevelAlert = slog.Level(12) LevelAlertStr = "ALERT" // LevelEmergency should not be used by applications LevelEmergency = slog.Level(14) LevelEmergencyStr = "EMERGENCY" )
Variables ¶
This section is empty.
Functions ¶
func GetAvailableLogLevels ¶
func GetAvailableLogLevels() []string
GetAvailableLogLevels returns a list of available log levels that can be used by GetLogLevel()
func GetLogLevel ¶
GetLogLevel returns a log level based on the given string. If the string is not recognized, it will return LevelInfo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.