level

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PanicLevel level, highest level of severity. Logs and then calls panic with the
	// message passed to Debug, Info, ...
	PanicLevel Level = iota
	// FatalLevel level. Logs and then calls `logger.Exit(1)`. It will exit even if the
	// logging level is set to Panic.
	FatalLevel
	// ErrorLevel level. Logs. Used for errors that should definitely be noted.
	// Commonly used for hook to send errors to an error tracking service.
	ErrorLevel
	// WarnLevel level. Non-critical entries that deserve eyes.
	WarnLevel
	// InfoLevel level. General operational entries about what's going on inside the application.
	InfoLevel
	// DebugLevel level. Usually only enabled when debugging. Very verbose logging.
	DebugLevel
	// TraceLevel level. Designates finer-grained informational events than the Debug.
	TraceLevel

	PanicLevelStr   = "panic"
	FatalLevelStr   = "fatal"
	ErrorLevelStr   = "error"
	WarnLevelStr    = "warn"
	WarningLevelStr = "warning"
	InfoLevelStr    = "info"
	DebugLevelStr   = "debug"
	TraceLevelStr   = "trace"
)

Variables

AllLevels A constant exposing all logging levels

Functions

This section is empty.

Types

type Level

type Level = logrus.Level

Level type

func Default

func Default() Level

func String2Level

func String2Level(levelStr string) Level

Jump to

Keyboard shortcuts

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