{"id":17304203,"url":"https://github.com/ericlewis/swift-log-sentry","last_synced_at":"2025-04-14T13:13:42.660Z","repository":{"id":63909544,"uuid":"448217491","full_name":"ericlewis/swift-log-sentry","owner":"ericlewis","description":"Sentry logging backend for SwiftLog","archived":false,"fork":false,"pushed_at":"2023-06-19T03:08:30.000Z","size":16,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T17:12:09.207Z","etag":null,"topics":["ios","logging","sentry","swift","swift-log","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericlewis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-15T08:05:10.000Z","updated_at":"2023-12-24T00:51:27.000Z","dependencies_parsed_at":"2025-02-25T11:33:35.559Z","dependency_job_id":"7c3794c7-7a6b-47b3-b271-a740c64d5215","html_url":"https://github.com/ericlewis/swift-log-sentry","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericlewis","download_url":"https://codeload.github.com/ericlewis/swift-log-sentry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886328,"owners_count":21177644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","logging","sentry","swift","swift-log","swift-package-manager"],"created_at":"2024-10-15T11:52:26.430Z","updated_at":"2025-04-14T13:13:42.627Z","avatar_url":"https://github.com/ericlewis.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftLogSentry\n\n[![Build \u0026 Test](https://github.com/ericlewis/swift-log-sentry/actions/workflows/ci.yml/badge.svg)](https://github.com/ericlewis/swift-log-sentry/actions/workflows/ci.yml)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fericlewis%2Fswift-log-sentry%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/ericlewis/swift-log-sentry)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fericlewis%2Fswift-log-sentry%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/ericlewis/swift-log-sentry)\n\nA [Sentry](https://sentry.com) logging backend for [SwiftLog](https://github.com/apple/swift-log), \nit works by creating and adding a [Breadcrumb](https://docs.sentry.io/platforms/apple/guides/ios/enriching-events/breadcrumbs/) for log events.\n\n## Features\n\n- Supports [metadata](https://github.com/apple/swift-log#logging-metadata) by inserting the key value pairs in the data property on a Breadcrumb. \n- Log levels roughly map with minor differences.\n- Supports line, file, and function reporting via the data property.\n- 100% test coverage.\n\n## Getting started\n\nBefore using the logger you need to initialize the Sentry SDK.\n\n#### Adding the dependency\n\n`SwiftLogSentry` is designed for Swift 5. To use the handler, you need to declare your dependency in your `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/ericlewis/swift-log-sentry.git\", from: \"0.1.0\"),\n```\n\nand to your application/library target, add `\"SentryLogHandler\"` to your `dependencies`, e.g. like this:\n\n```swift\n.target(name: \"BestExampleApp\", dependencies: [\n    .product(name: \"SentryLogHandler\", package: \"swift-log-sentry\")\n],\n```\n\n## License\n\nThis library is released under the MIT license. See [LICENSE](LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericlewis%2Fswift-log-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericlewis%2Fswift-log-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericlewis%2Fswift-log-sentry/lists"}