mirror of
https://github.com/apple/swift-log
synced 2026-11-26 04:07:49 +00:00
154acdf7d45e63427310b2b31448afdb956b3966
Bumps [swiftlang/github-workflows/.github/workflows/soundness.yml](https://github.com/swiftlang/github-workflows) from 0.0.7 to 0.0.8. <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.8</h2> <h2>What's Changed</h2> <ul> <li>Fix build warnings in the workflow for iOS by <a href="https://github.com/kkebo"><code>@kkebo</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/173">swiftlang/github-workflows#173</a></li> <li>Check if the locally installed Android NDK matches the wanted NDK version by <a href="https://github.com/finagolfin"><code>@finagolfin</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/235">swiftlang/github-workflows#235</a></li> <li>Update installed version of static linux SDK to 0.1.0 when using released toolchains by <a href="https://github.com/owenv"><code>@owenv</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/241">swiftlang/github-workflows#241</a></li> <li>Update the Xcode versions - 26.3 and 26.4b2 by <a href="https://github.com/shahmishal"><code>@shahmishal</code></a> in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/245">swiftlang/github-workflows#245</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/kkebo"><code>@kkebo</code></a> made their first contribution in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/173">swiftlang/github-workflows#173</a></li> <li><a href="https://github.com/finagolfin"><code>@finagolfin</code></a> made their first contribution in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/235">swiftlang/github-workflows#235</a></li> <li><a href="https://github.com/owenv"><code>@owenv</code></a> made their first contribution in <a href="https://redirect.github.com/swiftlang/github-workflows/pull/241">swiftlang/github-workflows#241</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/swiftlang/github-workflows/compare/0.0.7...0.0.8">https://github.com/swiftlang/github-workflows/compare/0.0.7...0.0.8</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/swiftlang/github-workflows/commit/61db6917df4ec2ddeeb493757e2d1effd46af855"><code>61db691</code></a> Update the Xcode versions - 26.3 and 26.4b2 (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/245">#245</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/d7f8c780c9994917d6088e165e0fee6fb0bd06a1"><code>d7f8c78</code></a> Update installed version of static linux SDK to 0.1.0 (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/241">#241</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/bca81f75d7d1ae2474f1213169aab56dcad8961f"><code>bca81f7</code></a> Revert Use local copy on action invocation (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/239">#239</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/27ad4acfa502b0cb8b901532e8294a14b7273988"><code>27ad4ac</code></a> Add symlinks for backwards compatability (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/238">#238</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/555b8029955d1e91ed50768afb969805c796bdd6"><code>555b802</code></a> Check if the locally installed Android NDK matches the wanted NDK version (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/235">#235</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/c6fcbaf70a845126ec165107a2d509bda17a2fd1"><code>c6fcbaf</code></a> Use local copy on action invocation (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/236">#236</a>)</li> <li><a href="https://github.com/swiftlang/github-workflows/commit/2b7c7405cd7ce3627f84fb0765c785f099d19715"><code>2b7c740</code></a> Fix build warnings in the workflow for iOS (<a href="https://redirect.github.com/swiftlang/github-workflows/issues/173">#173</a>)</li> <li>See full diff in <a href="https://github.com/swiftlang/github-workflows/compare/0.0.7...0.0.8">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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 this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </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.md
- 🔀 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.1
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.
Description
Mirror of github.com/apple/swift-log
3.3 MiB
0 Stars
1 Watchers
0 Forks
Languages
Swift
97.5%
CMake
2.5%