The first release of AS_SwiftLogHandler — a set of swift-log LogHandler backends for Apple platforms. Extracted from logging infrastructure I've used in production, now adapted to swift-log and open-sourced.
Destinations:
- OS — forward to Apple's unified logging (OSLog), with a configurable
Logger.Level→OSLogTypemapping. - File — plain-text logs with size-based rotation, with metadata attached to the message.
- SQLite — structured entries in a SQLite database (WAL mode), with metadata stored as JSONB.
Read logs back — the File and SQLite destinations can return their entries as structured SwiftLogEntry values, filtered with a plain Swift closure.
Swift 6 native — strict-concurrency clean; file I/O is serialized through actors backed by a DispatchSerialQueue.
See the README for usage. Known limitation: write-time disk-full / loss-of-write-access is not yet handled (fail-safe — logs may drop, app is unaffected); planned for a future release.
Full Changelog: https://github.com/AustinSoftCom/AS_SwiftLogHandler/commits/1.0.0