Skip to content

Releases: go-logr/logr

v1.1.0

23 Aug 18:43
c908498
Compare
Choose a tag to compare

This release has several bugfixes and feature improvements.

  • logr: fix incremental WithCallDepth() calls.
  • logr: expose the LogSink via GetSink() and SetSink() for custom WithSomething(logr, something) integrations.
  • logr: add an optional CallStackHelperLogSink interface so that implementations which have a function to flag helper functions (e.g. testing.T has Helper()) can attribute callers correctly. Log helper functions should prefer to use WithCallStackHelper() instead WithCallDepth(1) for maximum reach. Note the signature of WithCallStackHelper() - the caller must ALSO call the returned function.
  • funcr: add a LogTimestamp option.
  • funcr: support embedding a funcr.Formatter in other logger implementations. Used in testing.NewTestLogger()
  • testing: proper caller attribution when using NewTestLogger()
  • testing: enable options for LogTimestamp and Verbosity in NewTestLoggerWithOptions()
  • misc: Godoc clarifications

v1.1.0-rc1

20 Aug 20:11
31ff767
Compare
Choose a tag to compare

This release has several bugfixes and feature improvements.

  • logr: fix incremental WithCallDepth() calls.
  • logr: expose the LogSink via GetSink() and SetSink() for custom WithSomething(logr, something) integrations.
  • logr: add an optional CallStackHelperLogSink interface so that implementations which have a function to flag helper functions (e.g. testing.T has Helper()) can attribute callers correctly. Log helper functions should prefer to use WithCallStackHelper() instead WithCallDepth(1) for maximum reach. Note the signature of WithCallStackHelper() - the caller must ALSO call the returned function.
  • funcr: add a LogTimestamp option.
  • funcr: support embedding a funcr.Formatter in other logger implementations. Used in testing.NewTestLogger()
  • testing: proper caller attribution when using NewTestLogger()
  • testing: enable options for LogTimestamp and Verbosity in NewTestLoggerWithOptions()
  • misc: Godoc clarifications

v1.0.0

06 Jul 22:53
622c97b
Compare
Choose a tag to compare

This is the first official non-beta release. From here on in, compat really matters.

v1.0.0-rc1

28 May 21:06
745c5c0
Compare
Choose a tag to compare

This is a BREAKING CHANGE. Most end-users will be fine. All logging implementations will need to be updated.

See #42 for details.

v0.4.0

26 Jan 22:10
8fc6c73
Compare
Choose a tag to compare
  • Adds logr.WithCallDepth()

  • Deprecate logr/testing.NullLogger in favor of logr.Discard()

v0.3.0

02 Nov 16:50
4fa77cb
Compare
Choose a tag to compare
  • Adds support for NewContext, FromContext, and FromContextOrDiscard
  • Documents the "underlier" pattern for implementations

v0.2.1

04 Sep 21:31
ff9374e
Compare
Choose a tag to compare
  • Adds an InfoLogger type alias for v0.1.0 compatibility

v0.2.0

11 Jun 22:37
d18fcbf
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

This tag is API-incompatible with previous versions.

  • Get rid of InfoLogger THIS IS A BREAKING CHANGE
  • Clarify that V() is supposed to be additive

v0.1.0

30 Oct 16:10
9fb12b3
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

It's useful to have a tag to speak to. This is the very first such release.