logger

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger is the global logger instance
	Logger zerolog.Logger
)

Functions

func Debug

func Debug(msg string, fields ...map[string]interface{})

Debug logs a debug message

func Error

func Error(msg string, err error, fields ...map[string]interface{})

Error logs an error message

func Fatal

func Fatal(msg string, err error, fields ...map[string]interface{})

Fatal logs a fatal message and exits the application

func Info

func Info(msg string, fields ...map[string]interface{})

Info logs an info message

func InitLogger

func InitLogger(verboseCount int)

InitLogger initializes the global logger with the given verbosity level

func IsInitialized

func IsInitialized() bool

IsInitialized returns true if the logger has been initialized

func Warn

func Warn(msg string, fields ...map[string]interface{})

Warn logs a warning message

func Writer

func Writer(level zerolog.Level) io.Writer

Writer returns a writer that can be used to pipe logs

Types

This section is empty.

Jump to

Keyboard shortcuts

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