Skip to content

Releases: samber/slog-formatter

v1.2.2

18 Dec 15:06

Choose a tag to compare

What's Changed

  • fix(formatters): recursive lookup for slog formatters by @samber in #38

Full Changelog: v1.2.1...v1.2.2

v1.2.1

17 Dec 00:00

Choose a tag to compare

Fix

Dependencies

  • Bump github.com/samber/slog-multi from 1.3.3 to 1.4.0 by @dependabot[bot] in #21
  • Bump golangci/golangci-lint-action from 6 to 7 by @dependabot[bot] in #22
  • Bump github.com/samber/lo from 1.49.1 to 1.50.0 by @dependabot[bot] in #23
  • Bump golangci/golangci-lint-action from 7 to 8 by @dependabot[bot] in #24
  • Bump github.com/samber/lo from 1.50.0 to 1.51.0 by @dependabot[bot] in #25
  • Bump github.com/samber/slog-multi from 1.4.0 to 1.4.1 by @dependabot[bot] in #26
  • Bump actions/checkout from 4 to 5 by @dependabot[bot] in #27
  • Bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in #28
  • Bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @dependabot[bot] in #29
  • Bump actions/setup-go from 5 to 6 by @dependabot[bot] in #30
  • Bump github.com/samber/slog-multi from 1.4.1 to 1.5.0 by @dependabot[bot] in #31
  • Bump github.com/samber/lo from 1.51.0 to 1.52.0 by @dependabot[bot] in #33
  • Bump github.com/samber/slog-multi from 1.5.0 to 1.6.0 by @dependabot[bot] in #34
  • Bump golangci/golangci-lint-action from 8 to 9 by @dependabot[bot] in #35
  • Bump actions/checkout from 5 to 6 by @dependabot[bot] in #36

Full Changelog: v1.2.0...v1.2.1

v1.2.0

04 Feb 13:00

Choose a tag to compare

Adding RecoverHandlerError

recovery := slogformatter.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.1.2

12 Jan 21:11

Choose a tag to compare

Upgrade deps

v1.1.1

10 Nov 23:22

Choose a tag to compare

bump v1.1.1

v1.1.0

09 Sep 17:53

Choose a tag to compare

The FormatByType+FormatByKind+FormatByKey formatter now navigate through the nested attributes.

v1.0.1

04 Jun 16:50

Choose a tag to compare

upgrade deps

v1.0.0

09 Aug 16:14

Choose a tag to compare

Upgrade go v1.21

v0.6.0

20 Jun 16:08

Choose a tag to compare

  • Upgrade slog
  • Fix slog.Group and slog.JSONHandler breaking changes

v0.5.0

20 May 20:29

Choose a tag to compare

Adding flatten formatter middleware