level

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int8
const (
	NoneLevel LogLevel = iota
	DebugLevel
	PrintLevel
	InfoLevel
	WarnLevel
	ErrorLevel
	PanicLevel
	FatalLevel
)

func ParseLevel

func ParseLevel(lvl string) (LogLevel, error)

ParseLevel takes a string level and returns the log level constant.

func (LogLevel) ShortString

func (lvl LogLevel) ShortString() string

func (LogLevel) String

func (lvl LogLevel) String() string

Convert the Level to a string. E.g.

Jump to

Keyboard shortcuts

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