{"id":15173645,"url":"https://github.com/binaryscraping/swift-log-supabase","last_synced_at":"2025-10-19T02:21:02.095Z","repository":{"id":63905921,"uuid":"479422111","full_name":"binaryscraping/swift-log-supabase","owner":"binaryscraping","description":"A logging backend for apple/swift-log that sends log entries to Supabase.","archived":false,"fork":false,"pushed_at":"2022-05-10T12:50:31.000Z","size":23,"stargazers_count":9,"open_issues_count":3,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T23:19:22.368Z","etag":null,"topics":["logging","supabase","swift-log"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binaryscraping.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-08T14:26:47.000Z","updated_at":"2025-01-02T17:48:40.000Z","dependencies_parsed_at":"2022-11-28T19:33:08.135Z","dependency_job_id":null,"html_url":"https://github.com/binaryscraping/swift-log-supabase","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/binaryscraping/swift-log-supabase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryscraping%2Fswift-log-supabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryscraping%2Fswift-log-supabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryscraping%2Fswift-log-supabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryscraping%2Fswift-log-supabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binaryscraping","download_url":"https://codeload.github.com/binaryscraping/swift-log-supabase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryscraping%2Fswift-log-supabase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279669751,"owners_count":26208340,"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","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["logging","supabase","swift-log"],"created_at":"2024-09-27T11:01:54.126Z","updated_at":"2025-10-19T02:21:02.064Z","avatar_url":"https://github.com/binaryscraping.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-log-supabase\n\nA logging backend for [apple/swift-log](https://github.com/apple/swift-log) that sends log entries to [Supabase](https://github.com/supabase/supabase).\n\n## Getting Started\n\nAdd `swift-log-supabase` as a dependency to your project using SPM.\n\n```swift\n.package(url: \"https://github.com/binaryscraping/swift-log-supabase\", from: \"0.1.0\"),\n```\n\nAnd in your application/target, add `\"SupabaseLogging\"` to your `\"dependencies\"`.\n\n```swift\n.target(\n  name: \"YourTarget\",\n  dependencies: [\n    .product(name: \"SupabaseLogging\", package: \"swift-log-supabase\"),\n  ]\n)\n```\n\n## Usage\n\nStart by creating the logs table on Supabase dashboard by running the [supabase-init.sql](/supabase-init.sql) script on Supabase SQL Editor.\n\n```swift\nimport Logging\nimport SupabaseLogging\n\n// During app startup/initialization.\n\nLoggingSystem.bootstrap { label in \n  SupabaseLogHandler(\n    label: label,\n    config: SupabaseLogConfig(\n      table: \"logs\", // optional table name to use, defaults to \"logs\".\n      supabaseURL: \"https://your-supabase-project-url.com/rest/v1\",\n      supabaseAnonKey: \"your-supabase-anon-key\",\n      isDebug: true // optional flag to turn on/off internal logging, defaults to \"false\".\n    )\n  )\n}\n\n// Then just log it.\n\nlet logger = Logger(label: \"co.binaryscraping.swift-log-supabase\")\nlogger.info(\"Supabase is super cool\")\n```\n\nFor more details on all the features of the Swift Logging API, check out the [swift-log](https://github.com/apple/swift-log) repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryscraping%2Fswift-log-supabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinaryscraping%2Fswift-log-supabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryscraping%2Fswift-log-supabase/lists"}