Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
// Errorf logs a message at error level.
Errorf(msg string, keysAndValues ...any)
// Infof logs a message at info level.
Infof(msg string, keysAndValues ...any)
}
func PrintfLogger ¶
PrintfLogger wraps a Printf-based logger (such as the standard library "log") into an implementation of the Logger interface which logs errors only.
Click to show internal directories.
Click to hide internal directories.