github.com/samber/slog-multi

slog-multi

🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...

95

Decision Signals

Health score 95/100, confidence 100/100.

Excellent
Maintenance 95
Adoption 100
Security 92
Maturity 88
Developer DX 97
Confidence 100

Install

go get github.com/samber/slog-multi

Package Data

updated Jun 11, 2026
Latest versionv1.8.0
Imported by237 packages
Stars626
Forks26
Last activity7 days ago
Latest releasev1.8.0 (2 months ago)
LicenseMIT
Known vuln records0

API Surface

92 symbols
SymbolKindSynopsis
EnabledInlineMiddleware Type type EnabledInlineMiddleware struct{}
EnabledInlineMiddleware.Enabled Method func (h *EnabledInlineMiddleware) Enabled(ctx context.Context, level slog.Level) bool
EnabledInlineMiddleware.Handle Method func (h *EnabledInlineMiddleware) Handle(ctx context.Context, record slog.Record) error
EnabledInlineMiddleware.WithAttrs Method func (h *EnabledInlineMiddleware) WithAttrs(attrs []slog.Attr) slog.Handler
EnabledInlineMiddleware.WithGroup Method func (h *EnabledInlineMiddleware) WithGroup(name string) slog.Handler
FailoverHandler Type type FailoverHandler struct{}
FailoverHandler.Enabled Method func (h *FailoverHandler) Enabled(ctx context.Context, l slog.Level) bool
FailoverHandler.Handle Method func (h *FailoverHandler) Handle(ctx context.Context, r slog.Record) error
FailoverHandler.WithAttrs Method func (h *FailoverHandler) WithAttrs(attrs []slog.Attr) slog.Handler
FailoverHandler.WithGroup Method func (h *FailoverHandler) WithGroup(name string) slog.Handler
FanoutHandler Type type FanoutHandler struct{}
FanoutHandler.Enabled Method func (h *FanoutHandler) Enabled(ctx context.Context, l slog.Level) bool

Similar Packages

Go Logging Libraries

#1 Zerolog

Package zerolog provides a lightweight logging library dedicated to JSON logging.

Go Logging Libraries 12.4K stars 30.5K imported-by 100% confidence
94

#2 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 119.7K imported-by 65% confidence
92

#3 logger

Package logger defines the structured logging interface and a global default logger that components use when no explicit logger is configured.

Go Logging Libraries 55 stars 615 imported-by 95% confidence
86

#4 Logrus

Package logrus is a structured logger for Go, completely API compatible with the standard library logger.

Go Logging Libraries 25.7K stars 0 imported-by 65% confidence
86

#5 phuslu/log

Fastest structured logging

Go Logging Libraries 859 stars 0 imported-by 45% confidence
78