UnifiedLoggingPlus
Lightweight utilities for making OSLog more pleasant.
Integration
Swift Package Manager:
dependencies: [
.package(url: "https://github.com/ChimeHQ/UnifiedLoggingPlus")
]
Usage
Includes a simple Signpost
type that encapsulates os_signpost
calls, and a bunch of simple extension on OSLog
.
let log = OSLog(bundleIdScopedCategory: "MyCategory")!
log.debug("concise log statements")
let result = log.signpostWithin("name") {
// this gets measured by the signpost
}
Suggestions or Feedback
We'd love to hear from you! Get in touch via twitter, an issue, or a pull request.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.