levels

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TraceValue is the value used for the trace level field.
	TraceValue = "trace"
	// DebugValue is the value used for the debug level field.
	DebugValue = "debug"
	// InfoValue is the value used for the info level field.
	InfoValue = "info"
	// WarnValue is the value used for the warn level field.
	WarnValue = "warn"
	// ErrorValue is the value used for the error level field.
	ErrorValue = "error"
	// FatalValue is the value used for the fatal level field.
	FatalValue = "fatal"
	// PanicValue is the value used for the panic level field.
	PanicValue = "panic"
)

Functions

This section is empty.

Types

type Level

type Level int8

Level defines log levels.

const (
	// NoLevel defines an absent log level.
	NoLevel Level = iota + 1
	// Disabled disables the logger.
	Disabled
	// TraceLevel defines trace log level.
	TraceLevel
	// Debug defines debug log level.
	Debug
	// Info defines info log level.
	Info
	// Warn defines warn log level.
	Warn
	// Error defines error log level.
	Error
	// Fatal defines fatal log level.
	Fatal
	// Panic defines panic log level.
	Panic
)

func (Level) String

func (l Level) String() string

String returns the string representation of the log level int

Jump to

Keyboard shortcuts

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