level

package
v0.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level uint32

Level log.

const (
	Emergency Level = iota // emerg
	Alert                  // alert
	Critical               // crit
	Error                  // error
	Warning                // warning
	Notice                 // notice
	Info                   // info
	Debug                  // debug
)

available log levels.

func Parse

func Parse(lvl string) Level

func (Level) Enabled

func (l Level) Enabled(level Level) bool

func (Level) Is

func (l Level) Is(level Level) bool

func (Level) MarshalBinary added in v0.5.0

func (l Level) MarshalBinary() ([]byte, error)

func (Level) MarshalJSON

func (l Level) MarshalJSON() ([]byte, error)

func (Level) MarshalText added in v0.5.0

func (l Level) MarshalText() ([]byte, error)

func (Level) String

func (i Level) String() string

func (*Level) UnmarshalBinary added in v0.5.0

func (l *Level) UnmarshalBinary(in []byte) error

func (*Level) UnmarshalJSON

func (l *Level) UnmarshalJSON(in []byte) error

func (*Level) UnmarshalText added in v0.5.0

func (l *Level) UnmarshalText(in []byte) error

Jump to

Keyboard shortcuts

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