Releases: go-logr/logr
Releases · go-logr/logr
v1.1.0
This release has several bugfixes and feature improvements.
- logr: fix incremental
WithCallDepth()
calls. - logr: expose the LogSink via
GetSink()
andSetSink()
for customWithSomething(logr, something)
integrations. - logr: add an optional
CallStackHelperLogSink
interface so that implementations which have a function to flag helper functions (e.g.testing.T
hasHelper()
) can attribute callers correctly. Log helper functions should prefer to useWithCallStackHelper()
insteadWithCallDepth(1)
for maximum reach. Note the signature ofWithCallStackHelper()
- the caller must ALSO call the returned function. - funcr: add a
LogTimestamp
option. - funcr: support embedding a
funcr.Formatter
in other logger implementations. Used intesting.NewTestLogger()
- testing: proper caller attribution when using
NewTestLogger()
- testing: enable options for
LogTimestamp
andVerbosity
inNewTestLoggerWithOptions()
- misc: Godoc clarifications
v1.1.0-rc1
This release has several bugfixes and feature improvements.
- logr: fix incremental
WithCallDepth()
calls. - logr: expose the LogSink via
GetSink()
andSetSink()
for customWithSomething(logr, something)
integrations. - logr: add an optional
CallStackHelperLogSink
interface so that implementations which have a function to flag helper functions (e.g.testing.T
hasHelper()
) can attribute callers correctly. Log helper functions should prefer to useWithCallStackHelper()
insteadWithCallDepth(1)
for maximum reach. Note the signature ofWithCallStackHelper()
- the caller must ALSO call the returned function. - funcr: add a
LogTimestamp
option. - funcr: support embedding a
funcr.Formatter
in other logger implementations. Used intesting.NewTestLogger()
- testing: proper caller attribution when using
NewTestLogger()
- testing: enable options for
LogTimestamp
andVerbosity
inNewTestLoggerWithOptions()
- misc: Godoc clarifications
v1.0.0
v1.0.0-rc1
This is a BREAKING CHANGE. Most end-users will be fine. All logging implementations will need to be updated.
See #42 for details.