Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Debug uses fmt.Sprint to construct and log a message. Debug(args ...any) // Info uses fmt.Sprint to construct and log a message. Info(args ...any) // Warn uses fmt.Sprint to construct and log a message. Warn(args ...any) // Error uses fmt.Sprint to construct and log a message. Error(args ...any) // Panic uses fmt.Sprint to construct and log a message, then panics. Panic(args ...any) // Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit. Fatal(args ...any) // Debugf uses fmt.Sprintf to log a templated message. Debugf(template string, args ...any) // Infof uses fmt.Sprintf to log a templated message. Infof(template string, args ...any) // Warnf uses fmt.Sprintf to log a templated message. Warnf(template string, args ...any) // Errorf uses fmt.Sprintf to log a templated message. Errorf(template string, args ...any) // Panicf uses fmt.Sprintf to log a templated message, then panics. Panicf(template string, args ...any) // Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit. Fatalf(template string, args ...any) // WithFields adds a map of key-value pairs to the logging context WithFields(keyValues Fields) Logger }
Logger is our contract for the logger
Click to show internal directories.
Click to hide internal directories.