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
CallStackHelperLogSinkinterface so that implementations which have a function to flag helper functions (e.g.testing.ThasHelper()) 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
LogTimestampoption. - funcr: support embedding a
funcr.Formatterin other logger implementations. Used intesting.NewTestLogger() - testing: proper caller attribution when using
NewTestLogger() - testing: enable options for
LogTimestampandVerbosityinNewTestLoggerWithOptions() - misc: Godoc clarifications