logsniffer

package
v0.1.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewLogger

func NewLogger() *Logger

func NewSilentLogger

func NewSilentLogger() *Logger

func (*Logger) LevelCount

func (l *Logger) LevelCount(level slog.Level) int

func (*Logger) Logged

func (l *Logger) Logged(level slog.Level, phrase string) bool

func (*Logger) RecordCount

func (l *Logger) RecordCount(
	level slog.Level,
	msg string,
) int

func (*Logger) RecordCountWithAttrs

func (l *Logger) RecordCountWithAttrs(
	level slog.Level,
	msg string,
	attrs []slog.Attr,
) int

func (*Logger) Records

func (l *Logger) Records(level slog.Level) []slog.Record

func (*Logger) Slog

func (l *Logger) Slog() *slog.Logger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL