logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger is the global logger instance
	Logger *log.Logger
	// DebugEnabled tracks if debug logging is enabled
	DebugEnabled bool
)

Functions

func Debug

func Debug(msg interface{}, keyvals ...interface{})

Debug logs a debug message (only if debug is enabled)

func Error

func Error(msg interface{}, keyvals ...interface{})

Error logs an error message

func Fatal

func Fatal(msg interface{}, keyvals ...interface{})

Fatal logs a fatal message and exits

func GetLogger

func GetLogger() *log.Logger

GetLogger returns the global logger instance (for use in modules)

func Info

func Info(msg interface{}, keyvals ...interface{})

Info logs an info message

func Init

func Init(debug bool)

Init initializes the global logger with the specified debug level

func Warn

func Warn(msg interface{}, keyvals ...interface{})

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