level

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Info

Default ...

View Source
var Levels = []Level{
	Trace,
	Debug,
	Info,
	Warn,
	Error,
}

Levels ...

Functions

This section is empty.

Types

type Level

type Level string

Level a log level.

const (
	// Trace log level for tracing
	Trace Level = "TRACE"
	// Debug log level for debugging
	Debug Level = "DEBUG"
	// Info log level for information
	Info Level = "INFO"
	// Warn log level for warnings
	Warn Level = "WARN"
	// Error log level for errors
	Error Level = "ERROR"
)

func ByName

func ByName(s string, defaultLevel Level) Level

ByName ...

func (Level) IsAtLeast

func (level Level) IsAtLeast(l Level) bool

IsAtLeast determines if the specified level is at least as high as this level.

Jump to

Keyboard shortcuts

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