logger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug logs a debug message

func Error

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

Error logs an error message

func Fatal

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

Fatal logs a fatal message and exits

func Info

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

Info logs an info message

func InitLogger

func InitLogger()

InitLogger initializes the default logger

func SetDebug

func SetDebug(debug bool)

SetDebug enables debug logging

func SetLevel

func SetLevel(level log.Level)

SetLevel sets the logging level

func Warn

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

Warn logs a warning message

func With

func With(keyvals ...any) *log.Logger

With returns a new logger with additional context

Types

This section is empty.

Jump to

Keyboard shortcuts

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