level

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 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 (
	DebugLevel LogLevel = iota + 1
	PrintLevel
	InfoLevel
	WarnLevel
	ErrorLevel
	FatalLevel
	PanicLevel
)

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. PanicLevel becomes "panic".

Jump to

Keyboard shortcuts

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