Versions in this module Expand all Collapse all v0 v0.2.0 Sep 1, 2023 v0.1.0 Jul 20, 2023 Changes in this version + type Formatter interface + AppendAttr func(buf []byte, a slog.Attr, groups []string) []byte + AppendBegin func([]byte) []byte + AppendCloseGroup func(buf []byte, name string) []byte + AppendEnd func([]byte) []byte + AppendOpenGroup func(buf []byte, name string) []byte + AppendSeparatorIfNeeded func([]byte) []byte + type Handler struct + func New(w io.Writer, newFormatter func() Formatter) *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) WithAttrs(as []slog.Attr) slog.Handler + func (h *Handler) WithGroup(name string) slog.Handler + type Options struct + Level slog.Leveler + PCAttrs func(pc uintptr) []slog.Attr + ReplaceAttr func(groups []string, a slog.Attr) slog.Attr + func (opts Options) New(w io.Writer, newFormatter func() Formatter) *Handler