Skip to content

Commit 4b03bc5

Browse files
authored
Prepare release v1.22.0 (#1145)
This releases v1.22.0 of Zap with several new features. See changelog for details. List of commits in this release: v1.21.0...ee349f9 Refs GO-1563
1 parent ee349f9 commit 4b03bc5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@ All notable changes to this project will be documented in this file.
33

44
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## 1.22.0 (8 Aug 2022)
7+
8+
Enhancements:
9+
* [#1071][]: Add `zap.Objects` and `zap.ObjectValues` field constructors to log
10+
arrays of objects. With these two constructors, you don't need to implement
11+
`zapcore.ArrayMarshaler` for use with `zap.Array` if those objects implement
12+
`zapcore.ObjectMarshaler`.
13+
* [#1079][]: Add `SugaredLogger.WithOptions` to build a copy of an existing
14+
`SugaredLogger` with the provided options applied.
15+
* [#1080][]: Add `*ln` variants to `SugaredLogger` for each log level.
16+
These functions provide a string joining behavior similar to `fmt.Println`.
17+
* [#1088][]: Add `zap.WithFatalHook` option to control the behavior of the
18+
logger for `Fatal`-level log entries. This defaults to exiting the program.
19+
* [#1108][]: Add a `zap.Must` function that you can use with `NewProduction` or
20+
`NewDevelopment` to panic if the system was unable to build the logger.
21+
* [#1118][]: Add a `Logger.Log` method that allows specifying the log level for
22+
a statement dynamically.
23+
24+
Thanks to @cardil, @craigpastro, @sashamelentyev, @shota3506, and @zhupeijun
25+
for their contributions to this release.
26+
27+
[#1071]: https://github.com/uber-go/zap/pull/1071
28+
[#1079]: https://github.com/uber-go/zap/pull/1079
29+
[#1080]: https://github.com/uber-go/zap/pull/1080
30+
[#1088]: https://github.com/uber-go/zap/pull/1088
31+
[#1108]: https://github.com/uber-go/zap/pull/1108
32+
[#1118]: https://github.com/uber-go/zap/pull/1118
33+
634
## 1.21.0 (7 Feb 2022)
735

836
Enhancements:

0 commit comments

Comments
 (0)