github uber-go/zap exp/v0.3.0

8 hours ago

0.3.0 - 22 Oct 2024

Breaking changes:

  • #1339: zapslog: Drop HandlerOptions in favor of HandlerOption,
    which uses the functional options pattern.
  • #1339: zapslog: Rename AddSource option to WithCaller.

Enhancements:

  • #1339: zapslog: Record stack traces for error logs or higher.
    The new AddStackAt option changes this level.

Bug fixes:

  • #1344, #1408: zapslog: Comply fully with slog.Handler contract.
    This includes ignoring empty Attrs, inlining Groups with empty names,
    and omitting groups with no attributes.

Thanks to @zekth and @arukiidou for their contributions to this release.

Don't miss a new zap release

NewReleases is sending notifications on new releases.