Releases: samber/slog-multi
Releases · samber/slog-multi
v1.4.0
Adding RecoverHandlerError
recovery := slogmulti.RecoverHandlerError(
func(ctx context.Context, record slog.Record, err error) {
// will be called only if subsequent handlers fail or return an error
log.Println(err.Error())
},
)
sink := NewSinkHandler(...)
logger := slog.New(
slogmulti.
Pipe(recovery).
Handler(sink),
)
v1.3.3
Fix panic in HandleInlineHandler
v1.3.2
Inline middlewares + inline handlers: Adding a check on invalid parameters.
v1.3.1
Adding HandleInlineHandler and InlineHandler
(please ignore v1.3.0)
v1.2.4
v1.2.3
v1.2.2
v1.2.1
What's Changed
- FanoutHandler: prevent mulitple wrapping with
errors.Join
by @ItalyPaleAle in #10
New Contributors
- @ItalyPaleAle made their first contribution in #10
Full Changelog: v1.2.0...v1.2.1
v1.2.0
feat: When the name is empty, WithGroup returns the receiver