log

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, data ...any)

func Error

func Error(err error, format string, data ...any)

func Fatal

func Fatal(err error, format string, data ...any)

func Info

func Info(format string, data ...any)

func SetLogLevel

func SetLogLevel(lvlStr string)

func Trace

func Trace(format string, data ...any)

func Warn

func Warn(format string, data ...any)

Types

type Logger

type Logger interface {
	Trace(msg string)
	Tracef(format string, data ...any)
	Debug(msg string)
	Debugf(format string, data ...any)
	Info(msg string)
	Infof(format string, data ...any)
	Warn(msg string)
	Warnf(format string, data ...any)
	Error(err error, msg string)
	Errorf(err error, format string, data ...any)
	Fatal(err error, msg string)
	Fatalf(err error, format string, data ...any)
}

Jump to

Keyboard shortcuts

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