logging

package
v0.0.0-...-9ac8f15 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogger

func AddLogger(logger Logger)

func DisableDebugLogs

func DisableDebugLogs()

func LogDebug

func LogDebug(fmt string, s ...any)

func LogError

func LogError(fmt string, s ...any)

func LogFatal

func LogFatal(fmt string, s ...any)

func LogInfo

func LogInfo(fmt string, s ...any)

func LogWarning

func LogWarning(fmt string, s ...any)

Types

type Logger

type Logger interface {
	Info(fmt string, s ...any)
	Warning(fmt string, s ...any)
	Error(fmt string, s ...any)
	Fatal(fmt string, s ...any)
	Debug(fmt string, s ...any)
}

func NewConsoleLogger

func NewConsoleLogger() Logger

Jump to

Keyboard shortcuts

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