Bumps the swiftlang-github-workflows group with 5 updates: | Package | From | To | | --- | --- | --- | | [swiftlang/github-workflows/.github/workflows/package_test.yml](https://github.com/swiftlang/github-workflows) | `0.0.18` | `0.0.19` | | [swiftlang/github-workflows/.github/workflows/benchmarks.yml](https://github.com/swiftlang/github-workflows) | `0.0.18` | `0.0.19` | | [swiftlang/github-workflows/.github/workflows/cmake_build.yml](https://github.com/swiftlang/github-workflows) | `0.0.18` | `0.0.19` | | [swiftlang/github-workflows/.github/workflows/soundness.yml](https://github.com/swiftlang/github-workflows) | `0.0.18` | `0.0.19` | | [swiftlang/github-workflows/.github/workflows/pull_request_label.yml](https://github.com/swiftlang/github-workflows) | `0.0.18` | `0.0.19` | Updates `swiftlang/github-workflows/.github/workflows/package_test.yml` from 0.0.18 to 0.0.19 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/swiftlang/github-workflows/releases">swiftlang/github-workflows/.github/workflows/package_test.yml's releases</a>.</em></p> <blockquote> <h2>0.0.19</h2> <h2>What's Changed</h2> <ul> <li>Fix FreeBSD VM memory input name by <a href="https://github.com/plemarquand"><code>@plemarquand</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/357">swiftlang/github-workflows#357</a></li> <li>Run the matrix generator from a cached Swift package build by <a href="https://github.com/rnro"><code>@rnro</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/359">swiftlang/github-workflows#359</a></li> <li>Update default Swiftly toolchain to Xcode 27 - Swift 6.4 by <a href="https://github.com/shahmishal"><code>@shahmishal</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/360">swiftlang/github-workflows#360</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/swiftlang/github-workflows/commit/e8b910942e79fb2c0654a87804d8f16e2304285c"><code>e8b9109</code></a> Update default Swiftly toolchain to Xcode 27 - Swift 6.4 (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/360">#360</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/3ecd15a08c57fadad2843baeaf9a64d19ac1cbaf"><code>3ecd15a</code></a> Run the matrix generator from a cached Swift package build (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/359">#359</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/27048f599db8efd1d67ccc22a99e7c2a7dced6a5"><code>27048f5</code></a> Fix FreeBSD VM memory input name (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/357">#357</a>)</li> <li>See full diff in <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">compare view</a></li> </ul> </details> <br /> Updates `swiftlang/github-workflows/.github/workflows/benchmarks.yml` from 0.0.18 to 0.0.19 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/swiftlang/github-workflows/releases">swiftlang/github-workflows/.github/workflows/benchmarks.yml's releases</a>.</em></p> <blockquote> <h2>0.0.19</h2> <h2>What's Changed</h2> <ul> <li>Fix FreeBSD VM memory input name by <a href="https://github.com/plemarquand"><code>@plemarquand</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/357">swiftlang/github-workflows#357</a></li> <li>Run the matrix generator from a cached Swift package build by <a href="https://github.com/rnro"><code>@rnro</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/359">swiftlang/github-workflows#359</a></li> <li>Update default Swiftly toolchain to Xcode 27 - Swift 6.4 by <a href="https://github.com/shahmishal"><code>@shahmishal</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/360">swiftlang/github-workflows#360</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/swiftlang/github-workflows/commit/e8b910942e79fb2c0654a87804d8f16e2304285c"><code>e8b9109</code></a> Update default Swiftly toolchain to Xcode 27 - Swift 6.4 (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/360">#360</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/3ecd15a08c57fadad2843baeaf9a64d19ac1cbaf"><code>3ecd15a</code></a> Run the matrix generator from a cached Swift package build (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/359">#359</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/27048f599db8efd1d67ccc22a99e7c2a7dced6a5"><code>27048f5</code></a> Fix FreeBSD VM memory input name (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/357">#357</a>)</li> <li>See full diff in <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">compare view</a></li> </ul> </details> <br /> Updates `swiftlang/github-workflows/.github/workflows/cmake_build.yml` from 0.0.18 to 0.0.19 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/swiftlang/github-workflows/releases">swiftlang/github-workflows/.github/workflows/cmake_build.yml's releases</a>.</em></p> <blockquote> <h2>0.0.19</h2> <h2>What's Changed</h2> <ul> <li>Fix FreeBSD VM memory input name by <a href="https://github.com/plemarquand"><code>@plemarquand</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/357">swiftlang/github-workflows#357</a></li> <li>Run the matrix generator from a cached Swift package build by <a href="https://github.com/rnro"><code>@rnro</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/359">swiftlang/github-workflows#359</a></li> <li>Update default Swiftly toolchain to Xcode 27 - Swift 6.4 by <a href="https://github.com/shahmishal"><code>@shahmishal</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/360">swiftlang/github-workflows#360</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/swiftlang/github-workflows/commit/e8b910942e79fb2c0654a87804d8f16e2304285c"><code>e8b9109</code></a> Update default Swiftly toolchain to Xcode 27 - Swift 6.4 (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/360">#360</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/3ecd15a08c57fadad2843baeaf9a64d19ac1cbaf"><code>3ecd15a</code></a> Run the matrix generator from a cached Swift package build (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/359">#359</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/27048f599db8efd1d67ccc22a99e7c2a7dced6a5"><code>27048f5</code></a> Fix FreeBSD VM memory input name (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/357">#357</a>)</li> <li>See full diff in <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">compare view</a></li> </ul> </details> <br /> Updates `swiftlang/github-workflows/.github/workflows/soundness.yml` from 0.0.18 to 0.0.19 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/swiftlang/github-workflows/releases">swiftlang/github-workflows/.github/workflows/soundness.yml's releases</a>.</em></p> <blockquote> <h2>0.0.19</h2> <h2>What's Changed</h2> <ul> <li>Fix FreeBSD VM memory input name by <a href="https://github.com/plemarquand"><code>@plemarquand</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/357">swiftlang/github-workflows#357</a></li> <li>Run the matrix generator from a cached Swift package build by <a href="https://github.com/rnro"><code>@rnro</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/359">swiftlang/github-workflows#359</a></li> <li>Update default Swiftly toolchain to Xcode 27 - Swift 6.4 by <a href="https://github.com/shahmishal"><code>@shahmishal</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/360">swiftlang/github-workflows#360</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/swiftlang/github-workflows/commit/e8b910942e79fb2c0654a87804d8f16e2304285c"><code>e8b9109</code></a> Update default Swiftly toolchain to Xcode 27 - Swift 6.4 (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/360">#360</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/3ecd15a08c57fadad2843baeaf9a64d19ac1cbaf"><code>3ecd15a</code></a> Run the matrix generator from a cached Swift package build (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/359">#359</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/27048f599db8efd1d67ccc22a99e7c2a7dced6a5"><code>27048f5</code></a> Fix FreeBSD VM memory input name (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/357">#357</a>)</li> <li>See full diff in <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">compare view</a></li> </ul> </details> <br /> Updates `swiftlang/github-workflows/.github/workflows/pull_request_label.yml` from 0.0.18 to 0.0.19 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/swiftlang/github-workflows/releases">swiftlang/github-workflows/.github/workflows/pull_request_label.yml's releases</a>.</em></p> <blockquote> <h2>0.0.19</h2> <h2>What's Changed</h2> <ul> <li>Fix FreeBSD VM memory input name by <a href="https://github.com/plemarquand"><code>@plemarquand</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/357">swiftlang/github-workflows#357</a></li> <li>Run the matrix generator from a cached Swift package build by <a href="https://github.com/rnro"><code>@rnro</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/359">swiftlang/github-workflows#359</a></li> <li>Update default Swiftly toolchain to Xcode 27 - Swift 6.4 by <a href="https://github.com/shahmishal"><code>@shahmishal</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/360">swiftlang/github-workflows#360</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/swiftlang/github-workflows/commit/e8b910942e79fb2c0654a87804d8f16e2304285c"><code>e8b9109</code></a> Update default Swiftly toolchain to Xcode 27 - Swift 6.4 (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/360">#360</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/3ecd15a08c57fadad2843baeaf9a64d19ac1cbaf"><code>3ecd15a</code></a> Run the matrix generator from a cached Swift package build (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/359">#359</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/27048f599db8efd1d67ccc22a99e7c2a7dced6a5"><code>27048f5</code></a> Fix FreeBSD VM memory input name (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/357">#357</a>)</li> <li>See full diff in <a href="https://github.com/swiftlang/github-workflows/compare/0.0.18...0.0.19">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
SwiftLog
This repository contains a logging API implementation for Swift. SwiftLog provides a unified, performant, and ergonomic logging API that can be adopted by libraries and applications across the Swift ecosystem.
- 📚 Documentation and tutorials are available on the Swift Package Index
- 🚀 Contributions are welcome, please see CONTRIBUTING.md
- 🪪 License is Apache 2.0, repeated in LICENSE.txt
- 🔒 Security issues should be reported via the process in Security
- 🔀 Available Logging Backends: SwiftLog is an API package - you'll want to choose from the many community-maintained logging backends for production use
Quick Start
The following snippet shows how to add SwiftLog to your Swift Package:
// swift-tools-version: 6.2.3
import PackageDescription
let package = Package(
name: "YourApp",
dependencies: [
.package(url: "https://github.com/apple/swift-log", from: "1.6.0")
],
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "Logging", package: "swift-log")
]
)
]
)
Then start logging:
import Logging
// Create a logger
let logger = Logger(label: "com.example.YourApp")
// Log at different levels
logger.info("Application started")
logger.warning("This is a warning")
logger.error("Something went wrong", metadata: ["error": "\(error)"])
// Add metadata for context
var requestLogger = logger
requestLogger[metadataKey: "request-id"] = "\(UUID())"
requestLogger.info("Processing request")
Available log handler backends
The community has built numerous specialized logging backends.
A great way to discover available log backend implementations is searching the
Swift Package Index
for the swift-log keyword.
Building with CMake
While Swift Package Manager (SPM) is the primary build system for development and testing, CMake build support is also available for integrated or mixed build environments if needed. Note that tests are not included in the CMake build, they are managed through Swift Package Manager with swift test.