logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNKNOWN = Level(-1)
	DEBUG   = Level(1)
	INFO    = Level(2)
	WARN    = Level(3)
	ERROR   = Level(4)
	FATAL   = Level(5)
)

Variables

This section is empty.

Functions

func Fatalf

func Fatalf(format string, args ...any)

func Fatalln

func Fatalln(args ...any)

func Printf

func Printf(level Level, format string, args ...any)

func Println

func Println(level Level, args ...any)

func SetLogLevel

func SetLogLevel(level Level)

Types

type Level

type Level int
var LogLevel Level = 2

func FromString

func FromString(s string) Level

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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