zap v1.21.0 Release Notes

Release Date: 2022-02-07 // 5 months ago
  • โœจ Enhancements:

    • ๐Ÿ“œ #1047: Add zapcore.ParseLevel to parse a Level from a string.
    • ๐Ÿ“œ #1048: Add zap.ParseAtomicLevel to parse an AtomicLevel from a string.

    ๐Ÿ›  Bugfixes:

    • #1058: Fix panic in JSON encoder when EncodeLevel is unset.

    Other changes:

    • ๐ŸŽ #1052: Improve encoding performance when the AddCaller and AddStacktrace options are used together.

    ๐Ÿš€ Thanks to @aerosol and @Techassi for their contributions to this release.

Previous changes from v1.20.0

  • โœจ Enhancements:

    • #989: Add EncoderConfig.SkipLineEnding flag to disable adding newline characters between log statements.
    • #1039: Add EncoderConfig.NewReflectedEncoder field to customize JSON encoding of reflected log fields.

    ๐Ÿ›  Bugfixes:

    • #1011: Fix inaccurate precision when encoding complex64 as JSON.
    • #554, #1017: Close JSON namespaces opened in MarshalLogObject methods when the methods return.
    • #1033: Avoid panicking in Sampler core if thereafter is zero.

    Other changes:

    • ๐Ÿ‘ #1028: Drop support for Go < 1.15.

    ๐Ÿš€ Thanks to @psrajat, @lruggieri, @sammyrnycreal for their contributions to this release.