log

package
v0.0.0-...-e10d84e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugln

func Debugln(format string, v ...any)

func Errorln

func Errorln(format string, v ...any)

func Fatalln

func Fatalln(format string, v ...any)

func Infoln

func Infoln(format string, v ...any)

func Println

func Println(format string, v ...any)

func SetLevel

func SetLevel(newLevel LogLevel)

func SetStrLevel

func SetStrLevel(newLevel string)

func Throwln

func Throwln(a string, b string, err error)

func Warnln

func Warnln(format string, v ...any)

Types

type Event

type Event struct {
	LogLevel LogLevel
	Payload  string
}

func (*Event) Type

func (e *Event) Type() string

type LogLevel

type LogLevel int
const (
	DEBUG LogLevel = iota
	INFO
	WARNING
	ERROR
	SILENT
)

func Level

func Level() LogLevel

func (LogLevel) String

func (l LogLevel) String() string

Jump to

Keyboard shortcuts

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