Repository navigation
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(_:)andscoped(...) - 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
FileSinkwith size-based rotation and archive retention - New package-shipped
TestSinkfor 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
FileSinkandTestSinkusage
Validation
swift testpasses on the release branch