:seedling: Bump github.com/go-logr/logr from 1.2.4 to 1.4.1 by dependabot[bot] · Pull Request #283 · operator-framework/helm-operator-plugins
v1.4.1
What's Changed
- slogr: fix unintended API break in v1.4.0 by
@pohlyin go-logr/logr#253
Full Changelog: go-logr/logr@v1.4.0...v1.4.1
v1.4.0
This release dramatically improves interoperability with Go's log/slog package. In particular, logr.NewContext and logr.NewContextWithSlogLogger use the same context key, which allows logr.FromContext and logr.FromContextAsSlogLogger to return logr.Logger or *slog.Logger respectively, including transparently converting each to the other as needed.
Functions logr/slogr.NewLogr and logr/slogr.ToSlogHandler have been superceded by logr.FromSlogHandler and logr.ToSlogHandler respectively, and type logr/slogr.SlogSink has been superceded by logr.SlogSink. All of the old names in logr/slogr remain, for compatibility.
Package logr/funcr now supports logr.SlogSink, meaning that it's output passes all but one of the Slog conformance tests (that exception being that funcr handles the timestamp itself).
Users who have a logr.Logger and need a *slog.Logger can call slog.New(logr.ToSlogHandler(...)) and all output will go through the same stack.
Users who have a *slog.Logger or slog.Handler can call logr.FromSlogHandler(...) and all output will go through the same stack.
What's Changed
- slog context support by
@pohlyin go-logr/logr#237 - slog support: fix WithGroup + WithValues combination by
@pohlyin go-logr/logr#243 - Add tests for context with slog by
@thockinin go-logr/logr#246 - sloghandler: unnamed groups should be inlined by
@thockinin go-logr/logr#245 - Add SlogSink support to funcr by
@thockinin go-logr/logr#241 - funcr: Add LogInfoLevel Option to skip logging level in the info log by
@spacewanderin go-logr/logr#240
New Contributors
@spacewandermade their first contribution in go-logr/logr#240
Full Changelog: go-logr/logr@v1.3.0...v1.4.0
v1.3.0
This release adds support for slog in a new, self-contained logr/slogr package. Implementers of a logr.LogSink are encouraged, but not required, to extend their implementation to improve the quality of log output coming from a slog API call.
Breaking change: the call depth for LogSink.Enabled when called via Logger.Enabled was fixed to be the same as for other call paths. Implementers of a LogSink who have worked around this bug will need to remove their workarounds.
Security best practices were improved. Only Go versions >= 1.18 are supported by this release.
What's Changed
- Fix golangci-lint fails by
@thockinin go-logr/logr#173 - Add minimal permissions to workflows by
@pnachtin go-logr/logr#177 - Add a security policy by
@pnachtin go-logr/logr#178 - Update security email by
@thockinin go-logr/logr#181 - docs: explain relationship between Logger{} and Discard() by
@pohlyin go-logr/logr#182 - Add the OpenSSF Scorecard workflow by
@pnachtin go-logr/logr#186 - README: show of OpenSSF Scorecard badge by
@pohlyin go-logr/logr#187 - Hash-pin workflow Actions by
@pnachtin go-logr/logr#189 - Bump go versions to 1.18+ by
@thockinin go-logr/logr#203 - slogr: add glue code for logging to slog.Handler and with slog.Logger by
@pohlyin go-logr/logr#205 - slogr: restore original backend when converting back and forth by
@pohlyin go-logr/logr#210 - slogr: add SlogSink by
@pohlyin go-logr/logr#211
... (truncated)