Documentation
¶
Index ¶
- type Logger
- func (l *Logger) LevelCount(level slog.Level) int
- func (l *Logger) Logged(level slog.Level, phrase string) bool
- func (l *Logger) RecordCount(level slog.Level, msg string) int
- func (l *Logger) RecordCountWithAttrs(level slog.Level, msg string, attrs []slog.Attr) int
- func (l *Logger) Records(level slog.Level) []slog.Record
- func (l *Logger) Slog() *slog.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
}
func NewSilentLogger ¶
func NewSilentLogger() *Logger
func (*Logger) RecordCountWithAttrs ¶
Click to show internal directories.
Click to hide internal directories.