levels

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorLevel

type ErrorLevel int
const (
	// Undefined is the default value for unintialized variables.
	Undefined ErrorLevel = iota // 0
	Off                         // 1
	Fatal                       // 2 ...
	Error
	Warn
	Info
	Debug
	Trace
)

func ErrorLevelStringToLevel

func ErrorLevelStringToLevel(els ErrorLevelString) ErrorLevel

func (ErrorLevel) String

func (el ErrorLevel) String() string

type ErrorLevelString

type ErrorLevelString string
const (
	UNDEF ErrorLevelString = "UNDEF"
	OFF   ErrorLevelString = "OFF"
	FATAL ErrorLevelString = "FATAL"
	ERROR ErrorLevelString = "ERROR"
	WARN  ErrorLevelString = "WARN"
	INFO  ErrorLevelString = "INFO"
	DEBUG ErrorLevelString = "DEBUG"
	TRACE ErrorLevelString = "TRACE"

	// only for when things have gone terribly wrong:
	UNKNOWN = "<UNKNOWN ERROR LEVEL STRING>"
)

func ErrorLevelToErrorLevelString

func ErrorLevelToErrorLevelString(el ErrorLevel) ErrorLevelString

func (ErrorLevelString) String

func (els ErrorLevelString) String() string

Jump to

Keyboard shortcuts

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