zap v1.16.0 Release Notes
Release Date: 2020-09-01 // over 3 years ago-
๐ Bugfixes:
- #828: Fix missing newline in IncreaseLevel error messages.
- #835: Fix panic in JSON encoder when encoding times or durations
without specifying a time or duration encoder. - #843: Honor CallerSkip when taking stack traces.
- 0๏ธโฃ #862: Fix the default file permissions to use
0666
and rely on the umask instead. - ๐ฒ #854: Encode
<nil>
for nilStringer
instead of a panic error log.
โจ Enhancements:
- #629: Added
zapcore.TimeEncoderOfLayout
to easily create time encoders
for custom layouts. - ๐ง #697: Added support for a configurable delimiter in the console encoder.
- โก๏ธ #852: Optimize console encoder by pooling the underlying JSON encoder.
- ๐ #844: Add ability to include the calling function as part of logs.
- #843: Add
StackSkip
for including truncated stacks as a field. - โ #861: Add options to customize Fatal behaviour for better testability.
๐ Thanks to @SteelPhase, @tmshn, @lixingwang, @wyxloading, @moul, @segevfiner, @andy-retailnext and @jcorbin for their contributions to this release.