Releases: samber/slog-multi
Releases · samber/slog-multi
v1.6.0
What's Changed
- feat: make Fanout a no-op when len(handlers) == 1 by @josharian in 959a5ec
- feat: flatten FanoutHandlers in Fanout by @josharian in 7da846d
Other
- chore(deps): bump actions/setup-go from 5 to 6 by @dependabot[bot] in #39
- chore(deps): bump github.com/samber/lo from 1.51.0 to 1.52.0 by @dependabot[bot] in #40
New Contributors
- @josharian made their first contribution in #42
Full Changelog: v1.5.0...v1.6.0
v1.5.0
What's Changed
Other
- chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #34
- chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in #35
- chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @dependabot[bot] in #38
Full Changelog: v1.4.1...v1.5.0
v1.4.1
What's Changed
Dependencies
- chore(deps): bump golangci/golangci-lint-action from 6 to 7 by @dependabot in #28
- chore(deps): bump github.com/samber/lo from 1.49.1 to 1.50.0 by @dependabot in #29
- chore(deps): bump golangci/golangci-lint-action from 7 to 8 by @dependabot in #31
- chore(deps): bump github.com/samber/lo from 1.50.0 to 1.51.0 by @dependabot in #32
Full Changelog: v1.4.0...v1.4.1
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)