{"id":20957773,"url":"https://github.com/marekpridal/logkit","last_synced_at":"2026-04-21T18:33:14.754Z","repository":{"id":61544033,"uuid":"261176663","full_name":"marekpridal/LogKit","owner":"marekpridal","description":"Swift framework for easy logging","archived":false,"fork":false,"pushed_at":"2025-02-09T21:30:33.000Z","size":324,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T23:03:28.250Z","etag":null,"topics":["ios","logger","logging","macos","swift","swift-pm","watch","xcframework"],"latest_commit_sha":null,"homepage":null,"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/marekpridal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-05-04T13:00:25.000Z","updated_at":"2025-02-09T21:30:09.000Z","dependencies_parsed_at":"2024-11-19T01:44:06.989Z","dependency_job_id":"671bbbe2-00c6-4125-8f76-14cf77168513","html_url":"https://github.com/marekpridal/LogKit","commit_stats":{"total_commits":52,"total_committers":1,"mean_commits":52.0,"dds":0.0,"last_synced_commit":"56158361979b793336dad763200b809f2c926047"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekpridal%2FLogKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekpridal%2FLogKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekpridal%2FLogKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekpridal%2FLogKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marekpridal","download_url":"https://codeload.github.com/marekpridal/LogKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243352035,"owners_count":20276916,"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","logger","logging","macos","swift","swift-pm","watch","xcframework"],"created_at":"2024-11-19T01:43:56.028Z","updated_at":"2025-12-24T18:18:57.845Z","avatar_url":"https://github.com/marekpridal.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LogKit\n\n![Build](https://github.com/marekpridal/LogKit/actions/workflows/build.yml/badge.svg) ![Test](https://github.com/marekpridal/LogKit/actions/workflows/test.yml/badge.svg) ![Publish](https://github.com/marekpridal/LogKit/actions/workflows/Publish.yml/badge.svg) ![platforms](https://img.shields.io/badge/platform-iOS%20%7C%20watchOS%20%7C%20tvOS%20%7C%20macOS%20%7C%20visionOS%20%7C%20Android-333333) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager) ![GitHub](https://img.shields.io/github/license/marekpridal/LogKit) ![GitHub All Releases](https://img.shields.io/github/downloads/marekpridal/LogKit/total)\n\nLogKit is logging framework to simplify work with `os.log` API provided by Apple.\n\n## Support\n- iOS 14.0+ \n- watchOS 7.0+\n- macOS 11+\n- tvOS 14.0+\n- visionOS 1.0+\n- Android\n\n## Installation\n\nLogKit supports SwiftPM. You can integrate LogKit using SwiftPM directly via Xcode or manually using Package.swift.\n\n### [Xcode](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app)\n\nTo add a package dependency to your Xcode project, select File \u003e Swift Packages \u003e Add Package Dependency and enter its repository URL. You can also navigate to your target’s General pane, and in the “Frameworks, Libraries, and Embedded Content” section, click the + button. In the “Choose frameworks and libraries to add” dialog, select Add Other, and choose Add Package Dependency.\n\nInstead of adding a repository URL, you can search for a package on [GitHub](https://github.com/) or [GitHub Enterprise](https://github.com/enterprise). Add your [GitHub](https://github.com/) or [GitHub Enterprise](https://github.com/enterprise) account in Xcode’s preferences, and a list of package repositories appears as you type. The following screenshot shows the list of repositories for the search term ExamplePackage.\n\n### [Swift Package Manager](https://github.com/apple/swift-package-manager)\n\nCreate a `Package.swift` file.\n\n```swift\n// swift-tools-version:6.0\n\nimport PackageDescription\n\nlet package = Package(\n  name: \"LogKitExample\",\n  dependencies: [\n    .package(url: \"https://github.com/marekpridal/LogKit\", from: \"3.0.0\")\n  ],\n  targets: [\n    .target(name: \"LogKitExample\", dependencies: [\"LogKit\"])\n  ]\n)\n```\n\n## Usage\n```swift\nimport LogKit\n\n// Configure what should be logged during session\nLog.enabledLogging = [.default, .error, .expiration, .function, .inAppPurchase, .networking]\n\nLog.deinit(of: self)\n\n// 2020-05-10 15:34:17.452379+0200 xctest[10906:217188] [deinit] Deinit of -[LogKitTests testLogDeinit]\n\nLog.default(\"Hello world\")\n\n// 2020-05-10 15:34:17.451431+0200 xctest[10906:217188] [default] Hello world\n\nLog.error(NSError(domain: \"logkit.tests\", code: 0, userInfo: nil))\n\n// 2020-05-10 15:34:17.454305+0200 xctest[10906:217188] [error] Unable to complete (logkit.tests error 0.)\n\n\nLog.function(#function, in: #file)\n\n// 2020-05-10 15:34:17.455434+0200 xctest[10906:217188] [function] testLogFunctionIn() LogKitTests/LogKitTests.swift\n\n\nLog.requestCalled(function: #function)\n\n// 2020-05-10 15:34:17.465002+0200 xctest[10906:217188] [networking] testLogRequestCalled() already called\n\nLog.expiration(date: expiresDate)\n\n// 2020-05-10 15:34:17.454920+0200 xctest[10906:217188] [expiration] [GMT] Valid until 2020-05-10 13:34:17 +0000\n\nLog.request(URLRequest(url: URL(string: \"https://github.com/marekpridal/LogKit\")!, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 30))\n\n// 2020-05-10 15:34:17.458338+0200 xctest[10906:217188] [networking] \n// ---REQUEST------------------\n// URL -\u003e https://github.com/marekpridal/LogKit\n// METHOD -\u003e GET\n// HEADERS: {\n// }\n// ----------------------------\n\nLog.response(response, data: data)\n\n// ---RESPONSE------------------\n// URL -\u003e https://github.com/marekpridal/LogKit\n// MIMEType -\u003e application/octet-stream\n// Status code -\u003e -1\n// HEADERS: {\n// }\n// Response data -\u003e {\"bar\":\"Hello world\"}\n// ----------------------------\n\nLog.function(#function, text: \"Log function\")\n\n// 2020-05-10 15:34:17.455465+0200 xctest[10906:217188] [function] testLogFunctionIn() Log function\n\nLog.inAppPurchase(\"Purchasing...\")\n\n// 2020-05-10 15:34:17.455969+0200 xctest[10906:217188] [inAppPurchase] Purchasing...\n\nLog.products(request: request)\n\n// 2020-05-10 15:41:25.661150+0200 xctest[11170:222169] [inAppPurchase] \n// ---REQUEST------------------\n// \u003cSKProductsRequest: 0x100bb6670\u003e\n// ----------------------------\n\nLog.products(response: response)\n\n// 2020-05-10 15:41:48.995140+0200 xctest[11187:222918] [inAppPurchase] \n// ---RESPONSE------------------\n// Invalid product identifiers []\n// ----------------------------\n// Products []\n// ----------------------------\n\nLog.products(request: request)\n\n// 2020-05-10 15:42:30.262523+0200 xctest[11204:223751] [inAppPurchase] \n// ---REQUEST------------------\n// \u003cSKProductsRequest: 0x100b09130\u003e\n// ----------------------------\n\nLog.paymentQueue(queue)\n\n// 2020-05-10 15:42:58.838761+0200 xctest[11254:225150] [inAppPurchase] \n// ---QUEUE------------------\n// \u003cSKPaymentQueue: 0x100f07ee0\u003e\n// ----------------------------\n\nLog.payment(transactions: transactions)\n\n// 2020-05-10 15:43:17.628385+0200 xctest[11281:225904] [inAppPurchase] \n// ---UPDATED TRANSACTIONS------------------\n// [\u003cSKPaymentTransaction: 0x1051040a0\u003e]\n// ----------------------------\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekpridal%2Flogkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarekpridal%2Flogkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekpridal%2Flogkit/lists"}