{"id":15667300,"url":"https://github.com/0xwdg/oslogviewer","last_synced_at":"2025-05-05T23:50:39.443Z","repository":{"id":242245977,"uuid":"809061988","full_name":"0xWDG/OSLogViewer","owner":"0xWDG","description":"OSLogViewer is made for viewing your apps OS_Log history, it is a SwiftUI view which can be used in your app to view and export your logs.","archived":false,"fork":false,"pushed_at":"2025-04-17T20:46:42.000Z","size":1397,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T20:45:14.336Z","etag":null,"topics":["0xwdg","hacktoberfest","logger","oslog","oslogviewer","spm","swift","swift-lang","swiftui"],"latest_commit_sha":null,"homepage":"https://0xwdg.github.io/OSLogViewer/","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/0xWDG.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-01T15:22:35.000Z","updated_at":"2025-04-18T20:39:13.000Z","dependencies_parsed_at":"2024-10-23T09:32:35.679Z","dependency_job_id":"d06449bf-d6d3-4056-b6ce-1b04778de130","html_url":"https://github.com/0xWDG/OSLogViewer","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"1f003f45897b991f09bb8af9e0529e04b115ac2c"},"previous_names":["0xwdg/oslogviewer"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FOSLogViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FOSLogViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FOSLogViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FOSLogViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xWDG","download_url":"https://codeload.github.com/0xWDG/OSLogViewer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252596371,"owners_count":21773843,"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":["0xwdg","hacktoberfest","logger","oslog","oslogviewer","spm","swift","swift-lang","swiftui"],"created_at":"2024-10-03T14:02:08.646Z","updated_at":"2025-05-05T23:50:39.427Z","avatar_url":"https://github.com/0xWDG.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSLogViewer\n\nOSLogViewer is made for viewing your apps OS_Log history, it is a SwiftUI view which can be used in your app to view and export your logs.\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FOSLogViewer%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/0xWDG/OSLogViewer)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FOSLogViewer%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/0xWDG/OSLogViewer)\n[![Swift Package Manager](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager)\n![License](https://img.shields.io/github/license/0xWDG/OSLogViewer)\n\n_Key features:_\n\n- View your apps OS_Log history\n- Export logs\n\n## Requirements\n\n- Swift 5.8+ (Xcode 14.3+)\n- iOS 16+, macOS 12+, watchOS 9+, tvOS 16+, visionOS 1+\n\n## Installation\n\nInstall using Swift Package Manager\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/0xWDG/OSLogViewer.git\", branch: \"main\"),\n],\ntargets: [\n    .target(name: \"MyTarget\", dependencies: [\n        .product(name: \"OSLogViewer\", package: \"OSLogViewer\"),\n    ]),\n]\n```\n\nAnd import it:\n\n```swift\nimport OSLogViewer\n```\n\n## Usage\n\n### Quick usage\n\n```swift\nimport OSLogViewer\n\nNavigationLink {\n    // Default configuration\n    // uses your app's bundle identifier as subsystem\n    // and shows all logs from the last hour.\n    OSLogViewer()\n} label: {\n    Text(\"View logs\")\n}\n```\n\n### Custom usage\n\ncustom subsystem\n\n```swift\nimport OSLogViewer\n\nOSLogViewer(\n    subsystem: \"nl.wesleydegroot.exampleapp\",\n)\n```\n\ncustom time\n\n```swift\nimport OSLogViewer\n\nOSLogViewer(\n    since: Date().addingTimeInterval(-7200) // 2 hours\n)\n```\n\ncustom subsystem and time\n\n```swift\nimport OSLogViewer\n\nOSLogViewer(\n    subsystem: \"nl.wesleydegroot.exampleapp\",\n    since: Date().addingTimeInterval(-7200) // 2 hours\n)\n```\n\n## Screenshots\n\n\u003cimg src='https://github.com/0xWDG/OSLogViewer/assets/1290461/c2f870b5-cb7c-42f0-bdfd-78b88b73bb3a' height='500'\u003e\n\n## Export example\n\n```plaintext\nThis is the OSLog archive for exampleapp\nGenerated on 2/6/2024, 11:53\nGenerator https://github.com/0xWDG/OSLogViewer\n\nInfo message\nℹ️ 2/6/2024, 11:53 🏛️ exampleapp ⚙️ nl.wesleydegroot.exampleapp 🌐 myCategory\n\nError message\n❗ 2/6/2024, 11:53 🏛️ exampleapp ⚙️ nl.wesleydegroot.exampleapp 🌐 myCategory\n\nError message\n❗ 2/6/2024, 11:53 🏛️ exampleapp ⚙️ nl.wesleydegroot.exampleapp 🌐 myCategory\n\nCritical message\n‼️ 2/6/2024, 11:53 🏛️ exampleapp ⚙️ nl.wesleydegroot.exampleapp 🌐 myCategory\n\nLog message\n🔔 2/6/2024, 11:53 🏛️ exampleapp ⚙️ nl.wesleydegroot.exampleapp 🌐 myCategory\n\nLog message\n🔔 2/6/2024, 11:53 🏛️ exampleapp ⚙️ nl.wesleydegroot.exampleapp 🌐 myCategory\n```\n\n## Changelog\n\n- 1.0.0\n  - Initial release\n- 1.0.1\n  - Improved support for dark mode.\n  - Colors are more similar to Xcode's console.\n  - Added support for exporting logs.\n- 1.0.2 \u0026 1.0.3\n  - Fix: building on macOS \u003c 14.\n  - Improved support for dark mode.\n  - Colors are more similar to Xcode's console.\n  - Added support for exporting logs.\n- 1.0.4\n  - Fix: building on all platforms other than iOS.\n  - Improved support for dark mode.\n  - Colors are more similar to Xcode's console.\n  - Added support for exporting logs.\n  - Added online documentation https://0xwdg.github.io/OSLogViewer/\n- 1.0.5\n  - Improve text alignment and word-breaks in the details\n- 1.0.7\n  - Multi platform support\n- 1.0.8\n  - Fix hang on loading data\n- 1.1.0\n  - Added OSLogExtractor\n- 1.1.1\n  - Fixes for Linux targets\n- 1.1.2\n  - Fix logs on Mac displaying incorrectly by @infinitepower18 in #2\n- 1.1.3\n  - Make datarace safe\n\n## Contact\n\n🦋 [@0xWDG](https://bsky.app/profile/0xWDG.bsky.social)\n🐘 [mastodon.social/@0xWDG](https://mastodon.social/@0xWDG)\n🐦 [@0xWDG](https://x.com/0xWDG)\n🧵 [@0xWDG](https://www.threads.net/@0xWDG)\n🌐 [wesleydegroot.nl](https://wesleydegroot.nl)\n🤖 [Discord](https://discordapp.com/users/918438083861573692)\n\nInterested learning more about Swift? [Check out my blog](https://wesleydegroot.nl/blog/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwdg%2Foslogviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xwdg%2Foslogviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwdg%2Foslogviewer/lists"}