Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Debugf prints a debug-level message. Debugf(msg string, args ...any) // Noticef prints a notice-level message. Noticef(msg string, args ...any) // Warningf prints a warning-level message. Warningf(msg string, args ...any) // Errorf prints a error-level message. Errorf(msg string, args ...any) // Fatalf prints a error-level message and exits. Fatalf(msg string, args ...any) // Infof prints message to stdout without any level annotations. Infof(msg string, args ...any) }
All Logger methods follow the standard fmt.Printf convention.
func NewNoopLogger ¶
func NewNoopLogger() Logger
NewNoopLogger returns a logger that does not log anything.
Click to show internal directories.
Click to hide internal directories.