Skip to content

Releases: go-logr/zapr

v1.3.0

03 Nov 10:03
78b8af5
Compare
Choose a tag to compare

This release adds support for slog. zapr implements slogr.SlogSink and therefore can be used through slogr.NewSlogHandler as backend for slog.

What's Changed


New Contributors

Full Changelog: v1.2.4...v1.3.0

v1.2.4

11 May 07:47
6e2be81
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.3...v1.2.4

v1.2.3

17 Feb 06:55
Compare
Choose a tag to compare

What's Changed

  • handle panics in logr.Marshaler.MarshalLog by @pohly in #52

Full Changelog: v1.2.2...v1.2.3

v1.2.2

15 Dec 16:21
517e434
Compare
Choose a tag to compare

Update to logr v1.2.2

v1.2.0

20 Oct 19:13
Compare
Choose a tag to compare

This release has some improvements:

  • added support for logr.Marshaler
  • moved code examples to make them visible in gopkg.dev

v1.1.0

25 Aug 15:53
Compare
Choose a tag to compare

This release has bugfixes and feature improvements.

  • The new NewLoggerWithOptions() function can be used to customize the behavior of the logger:
    • LogInfoLevel: a field with a configurable name can be added for the numeric verbosity level of info messages. Error messages have no verbosity and thus are logged without that field.
    • DPanicOnBugs: by default, zapr calls zap.DPanic for invalid log calls to emit an error message with details about the invalid call and, depending on the configuration of the zap logger, cause a panic. This can be disabled in zapr.
    • AllowZapFields: passing a zap field instead of a key/value pair is non-portable and considered an error by default. Users who want to do that because they know that the underlying Logger is based on zap can disable that check.
    • ErrorKey: the default "error" name for Error messages can be overridden.
  • The source code attribution of the messages for invalid log calls now refers to the actual call site instead of zapr.go.
  • Various documentation enhancements and more thorough testing.
  • Bump zapr dependency to 1.19.0, which supports near-arbitrary negative levels, which allows full use of logr's V() range (up to V(127))

v1.0.0+1

09 Aug 17:02
a332506
Compare
Choose a tag to compare

Bump zapr dep to 1.19.0, which supports near-arbitrary negative levels.

This corresponds to logr v1.0.0

v1.0.0

06 Jul 22:56
91a4822
Compare
Choose a tag to compare
Merge pull request #28 from thockin/prep-v1

Update zapr to logr v1.0.0-rc1

v0.4.0

26 Jan 22:11
11b4afb
Compare
Choose a tag to compare
  • Support logr.WithCallDepth()

v0.3.0

02 Nov 16:54
146009e
Compare
Choose a tag to compare
  • Adds Underlier interface with GetUnderlying() which callers can use if they know the implementation and need direct access.