idolize/swift-log-sentry
Updated by [David Idol](https://github.com/idolize) to support the latest Sentry and swift-log library versions.
Features
- Supports metadata by inserting the key value pairs in the data property on a Breadcrumb.
- Log levels roughly map with minor differences.
- Supports line, file, and function reporting via the data property.
- 100% test coverage.
Getting started
Before using the logger you need to initialize the Sentry SDK.
Adding the dependency
SwiftLogSentry is designed for Swift 5+. To use the handler, you need to declare your dependency in your Package.swift:
.package(url: "https://github.com/idolize/swift-log-sentry.git", from: "2.1.0"),and to your application/library target, add "LoggingSentry" to your dependencies, e.g. like this:
.target(name: "BestExampleApp", dependencies: [
.product(name: "LoggingSentry", package: "swift-log-sentry")
],License
This library is released under the MIT license. See LICENSE for details.
Package Metadata
Repository: idolize/swift-log-sentry
Default branch: main
README: README.md