Documentation ¶
Overview ¶
severity provides syslog-type severity level handling.
Index ¶
Constants ¶
View Source
const ( SeverityDisabled = "disabled" SeverityEmergency = "emerg" SeverityAlert = "alert" SeverityCritical = "crit" SeverityError = "err" SeverityWarning = "warning" SeverityNotice = "notice" SeverityInformational = "info" SeverityDebug = "debug" )
Variables ¶
This section is empty.
Functions ¶
func Parse ¶ added in v0.25.4
Parse takes a string and returns a constant `Severity` value. Common aliases such as `warn` and `info` are included.
func Severities ¶ added in v0.25.4
func Severities() []string
Severities returns a list of severities.
func SeverityInclude ¶
SeverityInclude checks to see if a severity level is included against a certain severity filter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.