@@ -3,6 +3,34 @@ All notable changes to this project will be documented in this file.
33
44This 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
836Enhancements:
0 commit comments