loglevels

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRACE = iota
	DEBUG
	INFO
	WARN
	ERROR

	TracePrefix = " [TRACE] "
	DebugPrefix = " [DEBUG] "
	InfoPrefix  = " [INFO] "
	WarnPrefix  = " [WARN] "
	ErrorPrefix = " [ERROR] "
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int

LogLevel is a type that represents a log level. The hierarchy of log levels is the following: TRACE < DEBUG < INFO < WARN < ERROR.

func (LogLevel) String

func (ll LogLevel) String() string

Jump to

Keyboard shortcuts

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