Versions in this module Expand all Collapse all v1 v1.1.0 Oct 29, 2026 v1.0.0 Oct 26, 2026 Changes in this version + var BlockKey contextKey + type BatchHandler struct + func NewBatchHandler(options BatchOptions) *BatchHandler + func (h *BatchHandler) Enabled(ctx context.Context, level slog.Level) bool + func (h *BatchHandler) Handle(ctx context.Context, r slog.Record) error + func (h *BatchHandler) SetLevel(level slog.Level) + func (h *BatchHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *BatchHandler) WithGroup(name string) slog.Handler + func (h *BatchHandler) WriteAll(ctx context.Context) error + type BatchOptions struct + BatchSize int + BeforeAddFunc func(ctx context.Context, log *Log) bool + Level slog.Leveler + WriteFunc func(ctx context.Context, logs []*Log) error + type Log struct + Data types.JSONMap[any] + Level slog.Level + Message string + Time time.Time