severity

package
v2.80.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package severity provides definitions for klog severity (info, warning, ...)

Index

Constants

View Source
const Char = "IWEF"

Char contains one shortcut letter per severity level.

Variables

View Source
var Name = []string{
	InfoLog:    "INFO",
	WarningLog: "WARNING",
	ErrorLog:   "ERROR",
	FatalLog:   "FATAL",
}

Name contains one name per severity level.

Functions

This section is empty.

Types

type Severity

type Severity int32 // sync/atomic int32

severity identifies the sort of log: info, warning etc. The binding to flag.Value is handled in klog.go

const (
	InfoLog Severity = iota
	WarningLog
	ErrorLog
	FatalLog
	NumSeverity = 4
)

These constants identify the log levels in order of increasing severity. A message written to a high-severity log file is also written to each lower-severity log file.

func ByName

func ByName(s string) (Severity, bool)

ByName looks up a severity level by name.

Jump to

Keyboard shortcuts

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