handler

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(next slog.Handler) slog.Handler

Types

type Handler

type Handler struct {
	Next slog.Handler
	// contains filtered or unexported fields
}

func (*Handler) Enabled

func (handler *Handler) Enabled(ctx context.Context, level slog.Level) bool

func (*Handler) Handle

func (handler *Handler) Handle(ctx context.Context, record slog.Record) error

func (*Handler) WithAttrs

func (handler *Handler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*Handler) WithGroup

func (handler *Handler) WithGroup(name string) slog.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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