logutil

package
v0.25.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SeverityDisabled      = "disabled"
	SeverityEmergency     = "emergency"
	SeverityAlert         = "alert"
	SeverityCritical      = "critical"
	SeverityError         = "error"
	SeverityWarning       = "warning"
	SeverityNotice        = "notice"
	SeverityInformational = "informational"
	SeverityDebug         = "debug"
)

Variables

This section is empty.

Functions

func ParseSeverity

func ParseSeverity(sev string) (string, error)

ParseSeverity takes a string and returns a constant `Severity` value. Common aliases such as `warn` and `info` are included.

func SeverityInclude

func SeverityInclude(filterLevel, itemLevel string) (bool, error)

SeverityInclude checks to see if a severity level is included against a certain severity filter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL