#1071[]: Add zap.Objects and zap.ObjectValues field constructors to log
arrays of objects. With these two constructors, you don't need to implement
zapcore.ArrayMarshaler for use with zap.Array if those objects implement
zapcore.ObjectMarshaler.
#1079[]: Add SugaredLogger.WithOptions to build a copy of an existing
SugaredLogger with the provided options applied.
#1080[]: Add *ln variants to SugaredLogger for each log level.
These functions provide a string joining behavior similar to fmt.Println.
#1088[]: Add zap.WithFatalHook option to control the behavior of the
logger for Fatal-level log entries. This defaults to exiting the program.
#1108[]: Add a zap.Must function that you can use with NewProduction or
NewDevelopment to panic if the system was unable to build the logger.
#1118[]: Add a Logger.Log method that allows specifying the log level for
a statement dynamically.
#1071[]: Add zap.Objects and zap.ObjectValues field constructors to log
arrays of objects. With these two constructors, you don't need to implement
zapcore.ArrayMarshaler for use with zap.Array if those objects implement
zapcore.ObjectMarshaler.
#1079[]: Add SugaredLogger.WithOptions to build a copy of an existing
SugaredLogger with the provided options applied.
#1080[]: Add *ln variants to SugaredLogger for each log level.
These functions provide a string joining behavior similar to fmt.Println.
#1088[]: Add zap.WithFatalHook option to control the behavior of the
logger for Fatal-level log entries. This defaults to exiting the program.
#1108[]: Add a zap.Must function that you can use with NewProduction or
NewDevelopment to panic if the system was unable to build the logger.
#1118[]: Add a Logger.Log method that allows specifying the log level for
a statement dynamically.
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps go.uber.org/zap from 1.13.0 to 1.24.0.
Release notes
Sourced from go.uber.org/zap's releases.
... (truncated)
Changelog
Sourced from go.uber.org/zap's changelog.
... (truncated)
Commits
a55bdc3
Release v1.24.0 (#1208)ed5598a
Use ReplaceAll instead of Replace with -1 pos arg (#1195)da406e3
Chore: Fix deprecation docs and links (#1193)9b86a50
SugaredLogger: Turn error into zap.Error (#1185)9137e0e
go.mod: Bump go directive to 1.19 (#1181)7cabba7
Open absolute paths as files, limited Windows support (#1159)7681a0a
Export objectMarshalerPtr (#1171)9abd14b
chore: remove duplicate word in comments (#1169)eae3743
Logger, SugaredLogger: Add Level method (#1148)0d6a75b
tests: assert.Error/Contains => assert.ErrorContains (#1158)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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)