This is a collection of small bugfixes and documentation updates.
NOTE: A change (https://github.com/go-logr/logr/pull/166) which was thought to be compatible seems to be a breaking change. In particular, one used to be able to differentiate the result of Discard() from Logger{}. After this change, those are the same. We are considering how to address this, but do not currently plan to revert this change. Apologies!
What's Changed
- Fix syntax in documentation by @balki in https://github.com/go-logr/logr/pull/144
- testr: use an interface to make it work with *testing.B and *testing.F by @jeandeaual in https://github.com/go-logr/logr/pull/143
- If logging as JSON and the type is json.RawMessage log it "as-is" by @sfc-gh-jchacon in https://github.com/go-logr/logr/pull/147
- Make zero value useful & add .IsZero() by @wojas in https://github.com/go-logr/logr/pull/153
- testr: merge testLogger and testLoggerInterface by @thockin in https://github.com/go-logr/logr/pull/160
- funcr: JSON invalid output with 1st field omitted by @thockin in https://github.com/go-logr/logr/pull/159
- Make github assign PRs and issues by @thockin in https://github.com/go-logr/logr/pull/162
- Fix comments on optional sink interfaces by @thockin in https://github.com/go-logr/logr/pull/161
- Add examples for Logger methods by @thockin in https://github.com/go-logr/logr/pull/163
- funcr: optimize WithValues/WithName/WithCallDepth by @pohly in https://github.com/go-logr/logr/pull/165
- make Discard logger equal to null logger by @pohly in https://github.com/go-logr/logr/pull/166
New Contributors
- @balki made their first contribution in https://github.com/go-logr/logr/pull/144
- @jeandeaual made their first contribution in https://github.com/go-logr/logr/pull/143
- @sfc-gh-jchacon made their first contribution in https://github.com/go-logr/logr/pull/147
Full Changelog: https://github.com/go-logr/logr/compare/v1.2.3...v1.2.4