{"id":16624398,"url":"https://github.com/bruno-garcia/sentrycocoalumberjack","last_synced_at":"2025-08-22T15:31:26.090Z","repository":{"id":63906628,"uuid":"293154453","full_name":"bruno-garcia/SentryCocoaLumberjack","owner":"bruno-garcia","description":"CocoaLumberjack integration for Sentry","archived":false,"fork":false,"pushed_at":"2020-09-06T21:24:07.000Z","size":5003,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-13T02:30:20.581Z","etag":null,"topics":["cocoalumberjack","logging","sentry"],"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/bruno-garcia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-05T21:07:52.000Z","updated_at":"2024-05-20T13:09:39.000Z","dependencies_parsed_at":"2022-11-28T22:48:36.448Z","dependency_job_id":null,"html_url":"https://github.com/bruno-garcia/SentryCocoaLumberjack","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruno-garcia%2FSentryCocoaLumberjack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruno-garcia%2FSentryCocoaLumberjack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruno-garcia%2FSentryCocoaLumberjack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruno-garcia%2FSentryCocoaLumberjack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bruno-garcia","download_url":"https://codeload.github.com/bruno-garcia/SentryCocoaLumberjack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230607851,"owners_count":18252748,"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":["cocoalumberjack","logging","sentry"],"created_at":"2024-10-12T03:46:18.463Z","updated_at":"2024-12-20T15:44:43.861Z","avatar_url":"https://github.com/bruno-garcia.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SentryCocoaLumberjack\n\n[![build](https://github.com/bruno-garcia/SentryCocoaLumberjack/workflows/build/badge.svg?branch=main)](https://github.com/bruno-garcia/SentryCocoaLumberjack/actions?query=branch%3Amain)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fbruno-garcia%2FSentryCocoaLumberjack%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/bruno-garcia/SentryCocoaLumberjack)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fbruno-garcia%2FSentryCocoaLumberjack%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/bruno-garcia/SentryCocoaLumberjack)\n\nSend your [`CocoaLumberjack`](https://github.com/CocoaLumberjack/CocoaLumberjack) log messages to [Sentry](https://sentry.io).\n\n## Using this library\n\nInstall it with Swift Package Manager\n\n```swift\n.package(url: \"https://github.com/bruno-garcia/SentryCocoaLumberjack\", from: \"0.0.1-alpha.2\")\n```\n\nAdd the Sentry logger to your app:\n\n```swift\nlet sentryLogger = SentryLogger()\nDDLog.add(sentryLogger, with: DDLogLevel.info)\n```\n\nDone. All log messages with level `info` or higher will be stored as breadcrumbs.\nLogs with level `error` send an event to Sentry, which include the breadcrumbs.\n\nThese log levels can be configured. Check out the [example console app in this repo](Example/main.swift).\n\n## A low quality `gif` to give you an idea\n\n![Running the example](.github/sentry-cocoalumberjack.gif)\n\n## Run the example\n\nFirst add your DSN to [Example/main.swift](Example/main.swift).\n\nRun it:\n\n```sh\nswift run\n\n2020-09-05 20:39:59:741 Example[74424:4634517] 🔊 Noise message again: Something trivial.\n2020-09-05 20:39:59:741 Example[74424:4634517] 🌍 Check this out, something's weird.\n2020-09-05 20:39:59:741 Example[74424:4634517] 🪓🌴 Something relevant happened. Be aware.\n2020-09-05 20:39:59:741 Example[74424:4634517] 🍁 Warning! This isn't good.\n2020-09-05 20:39:59:741 Example[74424:4634517] 🔥 Broken stuff! Please fix this!\n```\n\nThe example is configured with custom minimum levels so you can see `info`, `warning` and `error` level events sent to Sentry. \nAll levels are stored as breadcrumbs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruno-garcia%2Fsentrycocoalumberjack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbruno-garcia%2Fsentrycocoalumberjack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruno-garcia%2Fsentrycocoalumberjack/lists"}