Documentation
¶
Index ¶
- type LogEntry
- type Logger
- func (l *Logger) Debug(f string, a ...any)
- func (l *Logger) Entries() []LogEntry
- func (l *Logger) Error(f string, a ...any)
- func (l *Logger) GetLevel() logging.Level
- func (l *Logger) Info(f string, a ...any)
- func (l *Logger) SetLevel(level logging.Level)
- func (l *Logger) Warn(f string, a ...any)
- func (l *Logger) WithContext(context.Context) logging.Logger
- func (l *Logger) WithFields(fields map[string]any) logging.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger implementation that buffers messages for test purposes.
func (*Logger) WithContext ¶ added in v1.15.0
WithContext returns the logger unchanged (test logger doesn't use context).
Click to show internal directories.
Click to hide internal directories.