Skip to content

Releases

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 25 Mar 14:26

Upgrading min Go version from 1.21 to 1.22. We moved from math/rand to math/rand/v2 for a x50 perf improvement on random number generation.

What's Changed

  • test: add comprehensive tests, fuzz tests, and benchmarks by @samber in #41
  • chore(deps): bump github.com/samber/slog-multi from 1.7.0 to 1.7.1 by @dependabot[bot] in #40
  • perf: reduce allocations across formatters by @samber in #42

Other

  • chore(deps): bump github.com/samber/slog-multi from 1.6.0 to 1.7.0 by @dependabot[bot] in #39

Full Changelog: v1.2.2...v1.3.0

v1.2.2

Choose a tag to compare

@github-actions github-actions released this 18 Dec 15:06

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

Choose a tag to compare

@github-actions github-actions released this 17 Dec 00:00

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

Choose a tag to compare

@github-actions github-actions released this 04 Feb 13:00

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

Choose a tag to compare

@github-actions github-actions released this 12 Jan 21:11

Upgrade deps

v1.1.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 23:22
bump v1.1.1

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 09 Sep 17:53

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

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 04 Jun 16:50

upgrade deps

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 09 Aug 16:14

Upgrade go v1.21

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 20 Jun 16:08
  • Upgrade slog
  • Fix slog.Group and slog.JSONHandler breaking changes
⌂ 捒网址