github.com/samber/slog-multi

slog-multi

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

73

Decision Signals

Health score 73/100, confidence 80/100.

Strong
Maintenance 83
Adoption 47
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/samber/slog-multi

Package Data

updated May 31, 2026
Latest versionv1.8.0
Imported by237 packages
Stars0
Forks0
Last activity2 months ago
Latest releaseUnknown
LicenseUnknown
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 Logrus

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

Go Logging Libraries 25.7K stars 240.0K imported-by 100% confidence
96

#2 Zerolog

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

Go Logging Libraries 12.4K stars 30.5K imported-by 90% confidence
87

#3 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 0 imported-by 65% confidence
87

#4 phuslu/log

Fastest structured logging

Go Logging Libraries 0 stars 343 imported-by 80% confidence
73

#5 oops

🔥 Error handling library with context, assertion, stack trace and source fragments

Go Logging Libraries 0 stars 332 imported-by 40% confidence
59