logger

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug logs a debug message

func Error

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

Error logs an error message

func GetLogger

func GetLogger() *slog.Logger

GetLogger returns the singleton logger instance

func Info

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

Info logs an info message

func SetLevel

func SetLevel(level slog.Level)

SetLevel sets the logging level

func Warn

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

Warn logs a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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