slogdiscard

package
v0.0.0-...-cb931d6 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiscardLogger

func NewDiscardLogger() *slog.Logger

Types

type DiscardHandler

type DiscardHandler struct {
}

func NewDiscardHandler

func NewDiscardHandler() *DiscardHandler

func (*DiscardHandler) Enabled

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

func (*DiscardHandler) Handle

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

func (*DiscardHandler) WithAttrs

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

func (*DiscardHandler) WithGroup

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

Jump to

Keyboard shortcuts

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