Changelog History
Page 4
-
v1.4.1 Changes
June 08, 2017๐ This release fixes two bugs.
๐ Bugfixes:
- ๐ [#435][]: Support a variety of case conventions when unmarshaling levels.
- [#444][]: Fix a panic in the observer.
-
v1.4.0 Changes
May 12, 2017๐ This release adds a few small features and is fully backward-compatible.
โจ Enhancements:
- [#424][]: Add a
LineEndingfield toEncoderConfig, allowing users to override the Unix-style default. - ๐ฒ [#425][]: Preserve time zones when logging times.
- [#431][]: Make
zap.AtomicLevelimplementfmt.Stringer, which makes a variety of operations a bit simpler.
- [#424][]: Add a
-
v1.3.0 Changes
April 25, 2017๐ This release adds an enhancement to zap's testing helpers as well as the ability to marshal an AtomicLevel. It is fully backward-compatible.
โจ Enhancements:
- [#415][]: Add a substring-filtering helper to zap's observer. This is
particularly useful when testing the
SugaredLogger. - [#416][]: Make
AtomicLevelimplementencoding.TextMarshaler.
- [#415][]: Add a substring-filtering helper to zap's observer. This is
particularly useful when testing the
-
v1.2.0 Changes
April 13, 2017๐ This release adds a gRPC compatibility wrapper. It is fully backward-compatible.
โจ Enhancements:
- ๐ฆ [#402][]: Add a
zapgrpcpackage that wraps zap's Logger and implementsgrpclog.Logger.
- ๐ฆ [#402][]: Add a
-
v1.1.0 Changes
March 31, 2017๐ This release fixes two bugs and adds some enhancements to zap's testing helpers. It is fully backward-compatible.
๐ Bugfixes:
- ๐ [#385][]: Fix caller path trimming on Windows.
- [#396][]: Fix a panic when attempting to use non-existent directories with zap's configuration struct.
โจ Enhancements:
- โ [#386][]: Add filtering helpers to zaptest's observing logger.
๐ Thanks to @moitias for contributing to this release.
-
v1.0.0 Changes
March 14, 2017๐ This is zap's first stable release. All exported APIs are now final, and no ๐ further breaking changes will be made in the 1.x release series. Anyone using a ๐ semver-aware dependency manager should now pin to
^1.๐ฅ Breaking changes:
- ๐ฒ [#366][]: Add byte-oriented APIs to encoders to log UTF-8 encoded text without
casting from
[]bytetostring. - ๐ [#364][]: To support buffering outputs, add
Syncmethods tozapcore.Core,zap.Logger, andzap.SugaredLogger. - ๐ฆ [#371][]: Rename the
testutilspackage tozaptest, which is less likely to clash with other testing helpers.
๐ Bugfixes:
- ๐ [#362][]: Make the ISO8601 time formatters fixed-width, which is friendlier for tab-separated console output.
- ๐ [#369][]: Remove the automatic locks in
zapcore.NewCore, which allows zap to work with concurrency-safeWriteSyncerimplementations. - ๐ง [#347][]: Stop reporting errors when trying to
fsyncstandard out on Linux systems. - [#373][]: Report the correct caller from zap's standard library interoperability wrappers.
โจ Enhancements:
- [#348][]: Add a registry allowing third-party encodings to work with zap's
built-in
Config. - ๐ง [#327][]: Make the representation of logger callers configurable (like times, levels, and durations).
- [#376][]: Allow third-party encoders to use their own buffer pools, which removes the last performance advantage that zap's encoders have over plugins.
- [#346][]: Add
CombineWriteSyncers, a convenience function to tee multipleWriteSyncers and lock the result. - [#365][]: Make zap's stacktraces compatible with mid-stack inlining (coming in Go 1.9).
- โ
[#372][]: Export zap's observing logger as
zaptest/observer. This makes it easier for particularly punctilious users to unit test their application's logging.
Thanks to @suyash, @htrendev, @flisky, @Ulexus, and @skipor for their ๐ contributions to this release.
- ๐ฒ [#366][]: Add byte-oriented APIs to encoders to log UTF-8 encoded text without
casting from
-
v1.0.0-rc.3 Changes
March 07, 2017๐ This is the third release candidate for zap's stable release. There are no ๐ฅ breaking changes.
๐ Bugfixes:
- [#339][]: Byte slices passed to
zap.Anyare now correctly treated as binary blobs rather than[]uint8.
โจ Enhancements:
- ๐ฒ [#307][]: Users can opt into colored output for log levels.
- [#353][]: In addition to hijacking the output of the standard library's
package-global logging functions, users can now construct a zap-backed
log.Loggerinstance. - [#311][]: Frames from common runtime functions and some of zap's internal machinery are now omitted from stacktraces.
๐ Thanks to @ansel1 and @suyash for their contributions to this release.
- [#339][]: Byte slices passed to
-
v1.0.0-rc.2 Changes
February 21, 2017๐ This is the second release candidate for zap's stable release. It includes two ๐ฅ breaking changes.
๐ฅ Breaking changes:
- [#316][]: Zap's global loggers are now fully concurrency-safe
(previously, users had to ensure that
ReplaceGlobalswas called before the loggers were in use). However, they must now be accessed via theL()andS()functions. Users can update their projects with
gofmt -r "zap.L -> zap.L()" -w . gofmt -r "zap.S -> zap.S()" -w .- [#309][] and [#317][]: RC1 was mistakenly shipped with invalid JSON and YAML struct tags on all config structs. This release fixes the tags and adds static analysis to prevent similar bugs in the future.
๐ Bugfixes:
- ๐ฒ [#321][]: Redirecting the standard library's
logoutput now correctly reports the logger's caller.
โจ Enhancements:
- ๐ [#325][] and [#333][]: Zap now transparently supports non-standard, rich
errors like those produced by
github.com/pkg/errors. - [#326][]: Though
New(nil)continues to return a no-op logger,NewNop()is now preferred. Users can update their projects withgofmt -r 'zap.New(nil) -> zap.NewNop()' -w .. - [#300][]: Incorrectly importing zap as
github.com/uber-go/zapnow returns a more informative error.
๐ Thanks to @skipor and @chapsuk for their contributions to this release.
- [#316][]: Zap's global loggers are now fully concurrency-safe
(previously, users had to ensure that
-
v1.0.0-rc.1 Changes
February 14, 2017๐ This is the first release candidate for zap's stable release. There are multiple ๐ฅ breaking changes and improvements from the pre-release version. Most notably:
- Zap's import path is now "go.uber.org/zap" — all users will need to update their code.
- ๐ฆ User-facing types and functions remain in the
zappackage. Code relevant largely to extension authors is now in thezapcorepackage. - ๐ฆ The
zapcore.Coretype makes it easy for third-party packages to use zap's internals but provide a different user-facing API. Loggeris now a concrete type instead of an interface.- 0๏ธโฃ A less verbose (though slower) logging API is included by default.
- ๐ฆ Package-global loggers
LandSare included. - ๐โโ A human-friendly console encoder is included.
- ๐ง A declarative config struct allows common logger configurations to be managed as configuration instead of code.
- Sampling is more accurate, and doesn't depend on the standard library's shared timer heap.
-
v0.3.0 Changes
October 22, 20240.3.0 - 22 Oct 2024
๐ฅ Breaking changes:
- #1339: zapslog: Drop
HandlerOptionsin favor ofHandlerOption,
which uses the functional options pattern. - #1339: zapslog: Rename
AddSourceoption toWithCaller.
โจ Enhancements:
- ๐ #1339: zapslog: Record stack traces for error logs or higher.
The newAddStackAtoption changes this level.
๐ Bug fixes:
- #1344, #1408: zapslog: Comply fully with
slog.Handlercontract.
This includes ignoring emptyAttrs, inliningGroups with empty names,
and omitting groups with no attributes.
๐ Thanks to @zekth and @arukiidou for their contributions to this release.
- #1339: zapslog: Drop