internal

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v0.8.3

func Debug(v ...any)

Debug logs a debug-level message.

func Debugf added in v0.8.3

func Debugf(format string, v ...any)

Debugf logs a formatted debug-level message.

func DisableDebugLogging

func DisableDebugLogging()

DisableDebugLogging sets the logger level to Panic so no debug/info logs are emitted.

func EnableDebugLogging

func EnableDebugLogging()

EnableDebugLogging sets the logger level to Debug. Kept for backwards compatibility with existing tests.

func Error added in v0.8.3

func Error(v ...any)

Error logs an error-level message.

func Errorf added in v0.8.3

func Errorf(format string, v ...any)

Errorf logs a formatted error-level message.

func Info added in v0.8.3

func Info(v ...any)

Info logs an info-level message.

func Infof added in v0.8.3

func Infof(format string, v ...any)

Infof logs a formatted info-level message.

func Log

func Log(v ...any)

Log logs a debug-level message.

func Logf

func Logf(format string, v ...any)

Logf logs a formatted debug-level message.

func Logger added in v0.8.3

func Logger() *logrus.Logger

Logger exposes the underlying logger for advanced configuration or hooks. Do not replace the returned pointer's value; prefer Set* helpers.

func SetFormatter added in v0.8.3

func SetFormatter(f logrus.Formatter)

SetFormatter allows customizing the log formatter.

func SetLevel added in v0.8.3

func SetLevel(level logrus.Level)

SetLevel allows callers to control the library logger level independently from any application loggers.

func SetOutput added in v0.8.3

func SetOutput(w io.Writer)

SetOutput allows redirecting log output.

func Warn added in v0.8.3

func Warn(v ...any)

Warn logs a warn-level message.

func Warnf added in v0.8.3

func Warnf(format string, v ...any)

Warnf logs a formatted warn-level message.

func WithError added in v0.8.3

func WithError(err error) *logrus.Entry

WithError attaches an error to the entry for structured logging.

func WithField added in v0.8.3

func WithField(key string, value any) *logrus.Entry

WithField attaches a key/value field to the entry for structured logging.

func WithFields added in v0.8.3

func WithFields(fields logrus.Fields) *logrus.Entry

WithFields attaches multiple fields to the entry for structured logging.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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