{"id":17820466,"url":"https://github.com/kkebo/swift-log-playground","last_synced_at":"2025-12-11T22:54:11.703Z","repository":{"id":63915554,"uuid":"426336390","full_name":"kkebo/swift-log-playground","owner":"kkebo","description":"This Swift package is a logging backend for SwiftLog. It can be usable on Swift Playgrounds.","archived":false,"fork":false,"pushed_at":"2025-10-17T19:21:49.000Z","size":89,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-15T10:06:46.726Z","etag":null,"topics":["logging","playground","swift","swift-playground","swift-playgrounds"],"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/kkebo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-09T18:11:03.000Z","updated_at":"2025-10-17T19:21:52.000Z","dependencies_parsed_at":"2024-04-04T20:54:49.021Z","dependency_job_id":"93628a99-4cd1-45c6-8231-1c342dc89b7f","html_url":"https://github.com/kkebo/swift-log-playground","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.25,"last_synced_commit":"dd7bd0e998d2b09f09bfc0a33ab0e92b2a49c4c9"},"previous_names":["kkebo/swift-log-playground","kkk669/swift-log-playground"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/kkebo/swift-log-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-log-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-log-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-log-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-log-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkebo","download_url":"https://codeload.github.com/kkebo/swift-log-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkebo%2Fswift-log-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27672063,"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-12-11T02:00:11.302Z","response_time":56,"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","playground","swift","swift-playground","swift-playgrounds"],"created_at":"2024-10-27T17:05:26.290Z","updated_at":"2025-12-11T22:54:11.684Z","avatar_url":"https://github.com/kkebo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoggingPlayground\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fkkebo%2Fswift-log-playground%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/kkebo/swift-log-playground)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fkkebo%2Fswift-log-playground%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/kkebo/swift-log-playground)\n[![License](https://img.shields.io/github/license/kkebo/swift-log-playground.svg)](LICENSE)\n\nThis Swift package is a logging backend for [SwiftLog](https://github.com/apple/swift-log). It is usable on Swift Playground.\n\n## Adding the dependency\n\nYou need to declare your dependency in your Package.swift:\n\n```swift\n.package(url: \"https://github.com/kkebo/swift-log-playground\", from: \"0.2.0\"),\n```\n\nand to your application/library target, add \"LoggingPlayground\" to your dependencies, e.g. like this:\n\n```swift\n.target(\n    name: \"YourLibrary\",\n    dependencies: [\n        .product(name: \"LoggingPlayground\", package: \"swift-log-playground\")\n    ]\n),\n```\n\n## Example (Playground Book or Xcode Playground)\n\n```swift\nimport Logging\nimport LoggingPlayground\n\nlet logger = Logger(label: \"main\")\n\nLoggingSystem.bootstrap { PlaygroundHandler(label: $0) }\n\nlogger.debug(\"The program started.\")\n```\n\n## Example (App Project)\n\n```swift\nimport Logging\nimport LoggingPlayground\nimport SwiftUI\n\nlet logger = Logger(label: \"main\")\n\n@main\nstruct MyApp: App {\n    init() {\n        // Use swift-log-playground only if running on Swift Playground or Xcode Previews\n        if ProcessInfo.processInfo.environment[\"XCODE_RUNNING_FOR_PREVIEWS\"] == \"1\" {\n            LoggingSystem.bootstrap { PlaygroundHandler(label: $0) }\n        }\n    }\n\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkebo%2Fswift-log-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkebo%2Fswift-log-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkebo%2Fswift-log-playground/lists"}