logger

package
v0.0.0-...-14535a3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 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)

Debug logs a debug message

func Debugf

func Debugf(format string, v ...interface{})

Debugf logs a formatted debug message

func Error

func Error(msg string)

Error logs an error message

func Errorf

func Errorf(format string, v ...interface{})

Errorf logs a formatted error message

func Fatal

func Fatal(msg string)

Fatal logs a fatal message and exits

func Fatalf

func Fatalf(format string, v ...interface{})

Fatalf logs a formatted fatal message and exits

func Info

func Info(msg string)

Info logs an info message

func Infof

func Infof(format string, v ...interface{})

Infof logs a formatted info message

func Init

func Init(verbose bool)

Init initializes the global logger

func SetLevel

func SetLevel(level string)

SetLevel sets the global log level

func Warn

func Warn(msg string)

Warn logs a warning message

func Warnf

func Warnf(format string, v ...interface{})

Warnf logs a formatted warning message

func WithField

func WithField(key string, value interface{}) zerolog.Logger

WithField returns a new logger with added field

func WithFields

func WithFields(fields map[string]interface{}) zerolog.Logger

WithFields returns a new logger with added fields

Types

This section is empty.

Jump to

Keyboard shortcuts

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