Logs are one of the most common places sensitive data leaks from an iOS app. They end up in sysdiagnoses, support emails, crash tickets and bug trackers, and a single print("\(user)") or "token=\(token)" can put an email address or a bearer token in all of them.
I wanted Apple's unified logging, optional log files users can send to support, and real privacy guarantees, without pulling in a third-party SDK. So I built AppLoggerKit : a free, MIT-licensed logging and local diagnostics package for Swift, SwiftUI and UIKit with no third-party dependencies .
What's inside
Module What it gives you
AppLoggerCore AppLogger with seven levels, lazy messages, categories and scoped loggers; structured LogRecord with a versioned JSON schema; public / private / sensitive metadata; a Redactor ; LogContext for correlation IDs.…