{"id":18060866,"url":"https://github.com/0xleif/swiftuilogger","last_synced_at":"2025-08-07T01:25:03.719Z","repository":{"id":61505115,"uuid":"550599716","full_name":"0xLeif/SwiftUILogger","owner":"0xLeif","description":"Logging to a SwiftUI View","archived":false,"fork":false,"pushed_at":"2023-12-29T17:07:11.000Z","size":28,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T16:40:54.209Z","etag":null,"topics":["logging","swiftui"],"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/0xLeif.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-13T02:58:07.000Z","updated_at":"2024-08-24T21:12:00.000Z","dependencies_parsed_at":"2024-10-31T04:11:11.398Z","dependency_job_id":"c36d1486-f567-42f1-b2c6-16a5ebaeb038","html_url":"https://github.com/0xLeif/SwiftUILogger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xLeif/SwiftUILogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xLeif%2FSwiftUILogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xLeif%2FSwiftUILogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xLeif%2FSwiftUILogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xLeif%2FSwiftUILogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xLeif","download_url":"https://codeload.github.com/0xLeif/SwiftUILogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xLeif%2FSwiftUILogger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269184013,"owners_count":24374424,"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-08-06T02:00:09.910Z","response_time":99,"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","swiftui"],"created_at":"2024-10-31T04:10:45.064Z","updated_at":"2025-08-07T01:25:03.681Z","avatar_url":"https://github.com/0xLeif.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUILogger\n\n*Logging to a SwiftUI View*\n\n## What is SwiftUILogger?\n\nSwiftUILogger allows you to log events by reference. Then you can display all the events using the LoggerView and passing the logger into the initalizer.\n\n## Why use SwiftUILogger?\n\nSwiftUILogger can be used while developing and testing your application to quickly see the debug logs without needing to be attached to LLDB session or Xcode.\n\n## Example Usage\n\n```swift\nimport SwiftUI\nimport SwiftUILogger\n\nlet logger = SwiftUILogger(name: \"Demo\")\n\n@main\nstruct SwiftUILogger_DemoApp: App {\n    @State private var isPresentedLogger: Bool = false\n\n    var body: some Scene {\n        WindowGroup {\n            NavigationStack {\n                ContentView()\n                    .sheet(isPresented: $isPresentedLogger) {\n                        LoggerView(logger: logger)\n                    }\n                    .toolbar {\n                        Button(\n                            action: { isPresentedLogger.toggle() },\n                            label: { Image(systemName: \"ladybug\") }\n                        )\n                    }\n            }\n        }\n    }\n}\n\n// MARK: - ContentView\n\nstruct ContentView: View {\n    init() {\n        logger.log(level: .info, message: \"init\")\n    }\n\n    var body: some View {\n        VStack {\n            Image(systemName: \"globe\")\n                .imageScale(.large)\n                .foregroundColor(.accentColor)\n            Text(\"Hello, world!\")\n        }\n        .padding()\n        .onAppear {\n            logger.log(level: .info, message: \"onAppear\")\n        }\n    }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xleif%2Fswiftuilogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xleif%2Fswiftuilogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xleif%2Fswiftuilogger/lists"}