Versions in this module Expand all Collapse all v1 v1.26.0 Aug 18, 2026 Changes in this version + type Handler struct + func New(newEncoder func(writer io.Writer) slog.Handler, fields map[string]string) *Handler + func (handler *Handler) Enabled(ctx context.Context, level slog.Level) bool + func (handler *Handler) Handle(ctx context.Context, record slog.Record) error + func (handler *Handler) WithAttrs(attrs []slog.Attr) slog.Handler + func (handler *Handler) WithGroup(name string) slog.Handler + func (handler *Handler) Write(data []byte) (int, error)