fix(deps): update module go.uber.org/zap to v1.27.1 #215
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
v1.15.0->v1.27.1Release Notes
uber-go/zap (go.uber.org/zap)
v1.27.1Compare Source
Enhancements:
Objectfrom panicking on nilsWithLazy.Thanks to @rabbbit, @alshopov, @jquirke, @arukiidou for their contributions to this release.
v1.27.0Compare Source
Enhancements:
WithLazymethod forSugaredLogger.NewTestingWriterfor customizing TestingWriter with more flexibility thanNewLogger.Log,Logw,Loglnmethods forSugaredLogger.WithPanicHookoption for testing panic logs.Thanks to @defval, @dimmo, @arxeiss, and @MKrupauskas for their contributions to this release.
v1.26.0Compare Source
Enhancements:
Dictas aField.WithLazymethod toLoggerwhich lazily evaluates the structuredcontext.
Thanks to @hhk7734, @jquirke, @cdvr1993 for their contributions to this release.
v1.25.0Compare Source
This release contains several improvements including performance, API additions,
and two new experimental packages whose APIs are unstable and may change in the
future.
Enhancements:
zap/exp/zapslogpackage for integration with slog.NametoLoggerwhich returns the Logger's name if one is set.zap/exp/expfieldpackage which contains helper methodsStrandStrsfor constructing String-like zap.Fields.Any.Thanks to @knight42, @dzakaammar, @bcspragu, and @rexywork for their contributions
to this release.
v1.24.0Compare Source
Enhancements:
Levelto bothLoggerandSugaredLoggerthat reports thecurrent minimum enabled log level.
SugaredLoggerturns errors to zap.Error automatically.Thanks to @Abirdcfly, @craigpastro, @nnnkkk7, and @sashamelentyev for their
contributions to this release.
v1.23.0Compare Source
Enhancements:
zapcore.LevelOffunction to determine the level of aLevelEnablerorCore.zap.Stringersfield constructor to log arrays of objectsthat implement
String() string.v1.22.0Compare Source
Enhancements:
zap.Objectsandzap.ObjectValuesfield constructors to logarrays of objects. With these two constructors, you don't need to implement
zapcore.ArrayMarshalerfor use withzap.Arrayif those objects implementzapcore.ObjectMarshaler.SugaredLogger.WithOptionsto build a copy of an existingSugaredLoggerwith the provided options applied.*lnvariants toSugaredLoggerfor each log level.These functions provide a string joining behavior similar to
fmt.Println.zap.WithFatalHookoption to control the behavior of thelogger for
Fatal-level log entries. This defaults to exiting the program.zap.Mustfunction that you can use withNewProductionorNewDevelopmentto panic if the system was unable to build the logger.Logger.Logmethod that allows specifying the log level fora statement dynamically.
Thanks to @cardil, @craigpastro, @sashamelentyev, @shota3506, and @zhupeijun
for their contributions to this release.
v1.21.0Compare Source
1.21.0 (7 Feb 2022)
Enhancements:
zapcore.ParseLevelto parse aLevelfrom a string.zap.ParseAtomicLevelto parse anAtomicLevelfrom astring.
Bugfixes:
EncodeLevelis unset.Other changes:
AddCallerandAddStacktraceoptions are used together.Thanks to @aerosol and @Techassi for their contributions to this release.
v1.20.0Compare Source
Enhancements:
EncoderConfig.SkipLineEndingflag to disable adding newlinecharacters between log statements.
EncoderConfig.NewReflectedEncoderfield to customize JSONencoding of reflected log fields.
Bugfixes:
MarshalLogObjectmethods when the methods return.
thereafteris zero.Other changes:
Thanks to @psrajat, @lruggieri, @sammyrnycreal for their contributions to this release.
v1.19.1Compare Source
Fixed
v1.19.0Compare Source
Enhancements:
better.
Thanks to @lancoLiu and @thockin for their contributions to this release.
v1.18.1Compare Source
Bugfixes:
zap.NewNop.v1.18.0Compare Source
Enhancements:
zapcore.BufferedWriteSyncer, a newWriteSyncerthat buffersmessages in-memory and flushes them periodically.
zapio.Writerto use a Zap logger as anio.Writer.zap.WithClockoption to control the source of time via thenew
zapcore.Clockinterface.zap.SugaredLoggerwhen arguments of*wmethods don't match expectations.
zaptest/observer.io.StringWriterandio.ByteWriterin Zap'sbuffer.Buffer.Thanks to @atrn0, @ernado, @heyanfu, @hnlq715, @zchee
for their contributions to this release.
v1.17.0Compare Source
Bugfixes:
<nil>for nilerrorinstead of a panic.vulnerabilities in dependencies.
Enhancements:
size from 96 to 80 bytes.
grpclog.LoggerV2in zapgrpc.with the
application/x-www-form-urlencodedcontent type.zap.Inline.zaptest/observer.Thanks to @ash2k, @FMLS, @jimmystewpot, @Oncilla, @tsoslow, @tylitianrui, @withshubh, and @wziww for their contributions to this release.
v1.16.0Compare Source
Bugfixes:
without specifying a time or duration encoder.
0666and rely on the umask instead.<nil>for nilStringerinstead of a panic error log.Enhancements:
zapcore.TimeEncoderOfLayoutto easily create time encodersfor custom layouts.
StackSkipfor including truncated stacks as a field.Thanks to @SteelPhase, @tmshn, @lixingwang, @wyxloading, @moul, @segevfiner, @andy-retailnext and @jcorbin for their contributions to this release.
Configuration
📅 Schedule: Branch creation - "on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.