mockslogger

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *slog.Logger

Types

type MockLogger

type MockLogger struct{}

func (*MockLogger) Enabled

func (h *MockLogger) Enabled(_ context.Context, _ slog.Level) bool

func (*MockLogger) Handle

func (h *MockLogger) Handle(_ context.Context, _ slog.Record) error

func (*MockLogger) WithAttrs

func (h *MockLogger) WithAttrs(_ []slog.Attr) slog.Handler

func (*MockLogger) WithGroup

func (h *MockLogger) WithGroup(_ string) slog.Handler

Jump to

Keyboard shortcuts

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