Versions in this module Expand all Collapse all v0 v0.1.0 Sep 12, 2026 Changes in this version + const AnchorMessage + const DefaultReplayKey + const DroppedKey + const DroppedMessage + func Middleware(opts ...MWOption) func(http.Handler) http.Handler + func Scope(ctx context.Context) (context.Context, func()) + func Trip(ctx context.Context) + type Handler struct + func New(downstream slog.Handler, opts ...Option) *Handler + func NewJSON(w io.Writer, opts ...Option) *Handler + func NewJSONWith(w io.Writer, ho slog.HandlerOptions, opts ...Option) *Handler + func NewText(w io.Writer, opts ...Option) *Handler + func NewTextWith(w io.Writer, ho slog.HandlerOptions, opts ...Option) *Handler + func (h *Handler) Enabled(ctx context.Context, level slog.Level) bool + func (h *Handler) Handle(ctx context.Context, r slog.Record) error + func (h *Handler) Trip(ctx context.Context) + func (h *Handler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *Handler) WithGroup(name string) slog.Handler + type MWOption func(*mwConfig) + func WithAnchorPath(fn func(*http.Request) string) MWOption + func WithLogger(l *slog.Logger) MWOption + func WithTripOn(pred func(status int) bool) MWOption + type Option func(*config) + func WithBufferFloor(l slog.Leveler) Option + func WithCapacity(n int) Option + func WithLevel(l slog.Leveler) Option + func WithPostTripLimit(n int) Option + func WithReplayKey(k string) Option + func WithTripLevel(l slog.Leveler) Option