Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Level returns the current logging level for this Logger. Level() Level // Logf logs a message with a logging level. Logf(level Level, format string, v ...any) // Debugf logs a message with level debug. Debugf(format string, v ...any) // Infof logs a message with level info. Infof(format string, v ...any) // Printf is an alias for Infof. Printf(format string, v ...any) // Warnf logs a message with level warn. Warnf(format string, v ...any) // Errorf logs a message with level error. Errorf(format string, v ...any) }
Logger represents a simple logging interface.
func DiscardLogger ¶
func DiscardLogger() Logger
DiscardLogger returns a logger that discards all output.
Click to show internal directories.
Click to hide internal directories.