Documentation
¶
Index ¶
- func Debug(v ...any)
- func Debugf(format string, v ...any)
- func DisableDebugLogging()
- func EnableDebugLogging()
- func Error(v ...any)
- func Errorf(format string, v ...any)
- func Info(v ...any)
- func Infof(format string, v ...any)
- func Log(v ...any)
- func Logf(format string, v ...any)
- func Logger() *logrus.Logger
- func SetFormatter(f logrus.Formatter)
- func SetLevel(level logrus.Level)
- func SetOutput(w io.Writer)
- func Warn(v ...any)
- func Warnf(format string, v ...any)
- func WithError(err error) *logrus.Entry
- func WithField(key string, value any) *logrus.Entry
- func WithFields(fields logrus.Fields) *logrus.Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 Logger ¶ added in v0.8.3
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
SetFormatter allows customizing the log formatter.
func SetLevel ¶ added in v0.8.3
SetLevel allows callers to control the library logger level independently from any application loggers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.