Bump go.uber.org/zap from 1.21.0 to 1.23.0
Bumps go.uber.org/zap from 1.21.0 to 1.23.0.
Release notes
Sourced from go.uber.org/zap's releases.
v1.23.0
Enhancements:
- #1147[]: Add a
zapcore.LevelOffunction to determine the level of aLevelEnablerorCore.- #1155[]: Add
zap.Stringersfield constructor to log arrays of objects that implementString() string.#1147: uber-go/zap#1147 #1155: uber-go/zap#1155
v1.22.0
Enhancements:
- #1071[]: Add
zap.Objectsandzap.ObjectValuesfield constructors to log arrays of objects. With these two constructors, you don't need to implementzapcore.ArrayMarshalerfor use withzap.Arrayif those objects implementzapcore.ObjectMarshaler.- #1079[]: Add
SugaredLogger.WithOptionsto build a copy of an existingSugaredLoggerwith the provided options applied.- #1080[]: Add
*lnvariants toSugaredLoggerfor each log level. These functions provide a string joining behavior similar tofmt.Println.- #1088[]: Add
zap.WithFatalHookoption to control the behavior of the logger forFatal-level log entries. This defaults to exiting the program.- #1108[]: Add a
zap.Mustfunction that you can use withNewProductionorNewDevelopmentto panic if the system was unable to build the logger.- #1118[]: Add a
Logger.Logmethod that allows specifying the log level for a statement dynamically.Thanks to
@cardil,@craigpastro,@sashamelentyev,@shota3506, and@zhupeijunfor their contributions to this release.#1071: uber-go/zap#1071 #1079: uber-go/zap#1079 #1080: uber-go/zap#1080 #1088: uber-go/zap#1088 #1108: uber-go/zap#1108 #1118: uber-go/zap#1118
Changelog
Sourced from go.uber.org/zap's changelog.
1.23.0 (24 Aug 2022)
Enhancements:
- #1147[]: Add a
zapcore.LevelOffunction to determine the level of aLevelEnablerorCore.- #1155[]: Add
zap.Stringersfield constructor to log arrays of objects that implementString() string.#1147: uber-go/zap#1147 #1155: uber-go/zap#1155
1.22.0 (8 Aug 2022)
Enhancements:
- #1071[]: Add
zap.Objectsandzap.ObjectValuesfield constructors to log arrays of objects. With these two constructors, you don't need to implementzapcore.ArrayMarshalerfor use withzap.Arrayif those objects implementzapcore.ObjectMarshaler.- #1079[]: Add
SugaredLogger.WithOptionsto build a copy of an existingSugaredLoggerwith the provided options applied.- #1080[]: Add
*lnvariants toSugaredLoggerfor each log level. These functions provide a string joining behavior similar tofmt.Println.- #1088[]: Add
zap.WithFatalHookoption to control the behavior of the logger forFatal-level log entries. This defaults to exiting the program.- #1108[]: Add a
zap.Mustfunction that you can use withNewProductionorNewDevelopmentto panic if the system was unable to build the logger.- #1118[]: Add a
Logger.Logmethod that allows specifying the log level for a statement dynamically.Thanks to
@cardil,@craigpastro,@sashamelentyev,@shota3506, and@zhupeijunfor their contributions to this release.#1071: uber-go/zap#1071 #1079: uber-go/zap#1079 #1080: uber-go/zap#1080 #1088: uber-go/zap#1088 #1108: uber-go/zap#1108 #1118: uber-go/zap#1118
Commits
1ae5819Release v1.23.0 (#1157)23d6cc7Add Stringers field constructor for slices of Stringer-compatible objects (#1...1e46f5eIssue Templates: Show a "Discussions" link for questions (#1152)92dded6Add issue template for questions (#1151)4a895a2zapcore: Add LevelOf(LevelEnabler), UnknownLevel (#1147)19a5d8aOpen: expose error cause, test for fs.ErrNotExist (#1149)bdd673dReplace os.TempDir usage with t.TempDir (#1146)4b03bc5Prepare release v1.22.0 (#1145)ee349f9CI: Lint against 1.19 (#1141)7ee98d2ci: add go1.19 (#1140)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.