Skip to content

2.2.0

Latest

Choose a tag to compare

@codeFi codeFi released this 21 Jun 20:17
· 2 commits to master since this release

XcodeLogger 2.2.0

This release expands XcodeLogger around a synchronous core with asynchronous sink delivery and adds the main configuration APIs needed for production use.

Highlights

  • Scoped child loggers with category(_:) and scoped(...)
  • Per-sink policy for minimum levels, file overrides, regex category rules, sampling, and rate limiting
  • Global redaction for metadata keys and message bodies before sink rendering
  • Async-capable sink delivery with deterministic ordering on one internal serial coordinator
  • New FileSink with size-based rotation and archive retention
  • New package-shipped TestSink for logger-focused test suites
  • Simpler build gating with LoggerConfiguration.whenEnabled(_:)
  • Removal of the dead Objective-C implementation tree while keeping the Swift compatibility facade and Compatibility/XcodeLogger.h

Documentation Notes

The README now includes concrete 2.2 usage examples and guidelines for:

  • Scoped child logger composition
  • Build gating with whenEnabled(_:)
  • Redaction setup
  • Per-sink filtering policy
  • Sampling and rate limiting
  • Async file delivery and rotation
  • FileSink and TestSink usage

Validation

  • swift test passes on the release branch