zap v1.16.0 Release Notes

Release Date: 2020-09-01 // 6 months 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 nil Stringer 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.


Previous changes from v1.15.0

  • ๐Ÿ›  Bugfixes:

    • #804: Fix handling of Time values out of UnixNano range.
    • #812: Fix IncreaseLevel being reset after a call to With.

    โœจ Enhancements:

    • #806: Add WithCaller option to supersede the AddCaller option. This
      ๐Ÿ‘ allows disabling annotation of log entries with caller information if
      previously enabled with AddCaller.
    • ๐Ÿ—„ #813: Deprecate NewSampler constructor in favor of
      ๐Ÿ‘ NewSamplerWithOptions which supports a SamplerHook option. This option
      โž• adds support for monitoring sampling decisions through a hook.

    ๐Ÿš€ Thanks to @danielbprice for their contributions to this release.