log

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FatalLevel   level = -3
	ErrorLevel   level = -2
	WarningLevel level = -1
	OutputLevel  level = 0 // default: output, warnings, errors & fatals
	InfoLevel    level = 1
	VerboseLevel level = 2
	DebugLevel   level = 3
	TraceLevel   level = 4
)

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...any)

func Error

func Error(msg string, args ...any)

func Fatal

func Fatal(msg string, args ...any)

func Info

func Info(msg string, args ...any)

func Output

func Output(msg string, args ...any)

func SetLevel

func SetLevel(level level)

func SetOutput

func SetOutput(output io.Writer)

func SetPrefix

func SetPrefix(prefix string)

func Trace

func Trace(msg string, args ...any)

func Verbose

func Verbose(msg string, args ...any)

func Warn

func Warn(msg string, args ...any)

Types

type Log

type Log struct {
	Prefix   string
	MaxLevel level
	Output   io.Writer
}

Jump to

Keyboard shortcuts

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