{"id":17304187,"url":"https://github.com/ericlewis/swift-log-variadic-bootstrap","last_synced_at":"2026-04-27T12:03:42.078Z","repository":{"id":44960625,"uuid":"448317871","full_name":"ericlewis/swift-log-variadic-bootstrap","owner":"ericlewis","description":"Variadic bootstrapping function for SwiftLog.","archived":false,"fork":false,"pushed_at":"2022-01-15T15:48:10.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-23T01:38:22.465Z","etag":null,"topics":["ios","logging","macos","swift","swift-log","tvos","watchos"],"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/ericlewis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-15T15:38:06.000Z","updated_at":"2022-01-24T17:29:49.000Z","dependencies_parsed_at":"2022-09-09T20:21:02.035Z","dependency_job_id":null,"html_url":"https://github.com/ericlewis/swift-log-variadic-bootstrap","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ericlewis/swift-log-variadic-bootstrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-variadic-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-variadic-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-variadic-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-variadic-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericlewis","download_url":"https://codeload.github.com/ericlewis/swift-log-variadic-bootstrap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlewis%2Fswift-log-variadic-bootstrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["ios","logging","macos","swift","swift-log","tvos","watchos"],"created_at":"2024-10-15T11:52:22.609Z","updated_at":"2026-04-27T12:03:42.032Z","avatar_url":"https://github.com/ericlewis.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftLogVariadicBootstrap\n[![Build \u0026 Test](https://github.com/ericlewis/swift-log-variadic-bootstrap/actions/workflows/ci.yml/badge.svg)](https://github.com/ericlewis/swift-log-variadic-bootstrap/actions/workflows/ci.yml)\n\nVariadic bootstrap function for [SwiftLog](https://github.com/apple/swift-log). \n\nBasically bridges `LoggingSystem.bootstrap()` arguments to a `MultiplexLogHandler`.\n\n## Getting Started\n\n### Adding the dependency\n\n`SwiftLogVariadicBootstrap` is designed for Swift 5. To use the handler, you need to declare your dependency in your `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/ericlewis/swift-log-variadic-bootstrap.git\", from: \"1.0.0\"),\n```\n\nand to your application/library target, add `\"VariadicBootstrap\"` to your `dependencies`, e.g. like this:\n\n```swift\n.target(name: \"BestExampleApp\", dependencies: [\n    .product(name: \"VariadicBootstrap\", package: \"swift-log-variadic-bootstrap\")\n],\n```\n\n### Example\n\nIt works exactly like [the existing bootstrap function](https://github.com/apple/swift-log#default-logger-behavior)\nbut it is variadic!\n\n#### Allow the labels to be passed in via bootstrap\n```swift\nimport Logging\nimport VariadicBootstrap\nimport ExampleLogBackend1\nimport ExampleLogBackend2\n\nLoggingSystem.bootstrap(ExampleLogBackend1.init, ExampleLogBackend2.init)\n\n```\n\n#### Set custom labels per backend\n```swift\nimport Logging\nimport VariadicBootstrap\nimport ExampleLogBackend1\nimport ExampleLogBackend2\n\nlet backend1 = ExampleLogBackend1(label: \"FirstBackend\")\nlet backend2 = ExampleLogBackend2(label: \"SecondBackend\")\n\nLoggingSystem.bootstrap(backend1, backend2)\n\n```\n\n## License\n\nThis library is released under the MIT license. See [LICENSE](LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericlewis%2Fswift-log-variadic-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericlewis%2Fswift-log-variadic-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericlewis%2Fswift-log-variadic-bootstrap/lists"}