Changelog History
Page 1
-
v1.28.0 Changes
April 28, 2026โจ Enhancements:
- #1534: Add
zapcore.CheckPreWriteHookandCheckedEntry.Beforemethod for transforming entries before they are written to any Cores.
- #1534: Add
-
v1.27.1 Changes
November 19, 2025 -
v1.27.0 Changes
February 20, 2024โจ Enhancements:
- #1378: Add
WithLazymethod forSugaredLogger. - โ
#1399: zaptest: Add
NewTestingWriterfor customizing TestingWriter with more flexibility thanNewLogger. - ๐ฒ #1406: Add
Log,Logw,Loglnmethods forSugaredLogger. - โ
#1416: Add
WithPanicHookoption for testing panic logs.
๐ Thanks to @defval, @dimmo, @arxeiss, and @MKrupauskas for their contributions to this release.
- #1378: Add
-
v1.26.0 Changes
September 14, 2023 -
v1.25.0 Changes
August 02, 2023๐ 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:
- ๐ฆ #1246: Add
zap/exp/zapslogpackage for integration with slog. - #1273: Add
NametoLoggerwhich returns the Logger's name if one is set. - ๐ฆ #1281: Add
zap/exp/expfieldpackage which contains helper methods
StrandStrsfor constructing String-like zap.Fields. - #1310: Reduce stack size on
Any.
Thanks to @knight42, @dzakaammar, @bcspragu, and @rexywork for their contributions
๐ to this release. - ๐ฆ #1246: Add
-
v1.24.0 Changes
November 30, 2022โจ Enhancements:
- #1148: Add
Levelto bothLoggerandSugaredLoggerthat reports the
๐ฒ current minimum enabled log level. - #1185:
SugaredLoggerturns errors to zap.Error automatically.
Thanks to @Abirdcfly, @craigpastro, @nnnkkk7, and @sashamelentyev for their
๐ contributions to this release. - #1148: Add
-
v1.23.0 Changes
August 24, 2022 -
v1.22.0 Changes
August 08, 2022โจ Enhancements:
- ๐ฒ #1071: Add
zap.Objectsandzap.ObjectValuesfield constructors to log
arrays of objects. With these two constructors, you don't need to implement
zapcore.ArrayMarshalerfor use withzap.Arrayif those objects implement
zapcore.ObjectMarshaler. - ๐ #1079: Add
SugaredLogger.WithOptionsto build a copy of an existing
SugaredLoggerwith 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
0๏ธโฃ logger forFatal-level log entries. This defaults to exiting the program. - #1108: Add a
zap.Mustfunction that you can use withNewProductionor
๐NewDevelopmentto 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 @zhupeijun
๐ for their contributions to this release. - ๐ฒ #1071: Add
-
v1.21.0 Changes
February 07, 20221.21.0 (7 Feb 2022)
โจ Enhancements:
- ๐ #1047: Add
zapcore.ParseLevelto parse aLevelfrom a string. - ๐ #1048: Add
zap.ParseAtomicLevelto parse anAtomicLevelfrom a
string.
๐ Bugfixes:
- #1058: Fix panic in JSON encoder when
EncodeLevelis unset.
Other changes:
- ๐ #1052: Improve encoding performance when the
AddCallerand
AddStacktraceoptions are used together.
๐ Thanks to @aerosol and @Techassi for their contributions to this release.
- ๐ #1047: Add
-
v1.20.0 Changes
January 04, 2022โจ Enhancements:
- #989: Add
EncoderConfig.SkipLineEndingflag to disable adding newline
๐ฒ characters between log statements. - #1039: Add
EncoderConfig.NewReflectedEncoderfield to customize JSON
๐ฒ encoding of reflected log fields.
๐ Bugfixes:
- #1011: Fix inaccurate precision when encoding complex64 as JSON.
- #554, #1017: Close JSON namespaces opened in
MarshalLogObject
methods when the methods return. - #1033: Avoid panicking in Sampler core if
thereafteris zero.
Other changes:
- ๐ #1028: Drop support for Go < 1.15.
๐ Thanks to @psrajat, @lruggieri, @sammyrnycreal for their contributions to this release.
- #989: Add