# \#swift-log

**URL:** https://forums.swift.org/tag/swift-log/264.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [\[Proposal\] SLG-0004: metadata value attributes (revision 2)](https://forums.swift.org/t/proposal-slg-0004-metadata-value-attributes-revision-2/86488)

<div class="topic-metadata">

**Author:** [@kukushechkin](https://forums.swift.org/u/kukushechkin)\
**Replies:** 9\
**Last updated:** [May 13, 2026, 10:18am UTC](https://forums.swift.org/t/proposal-slg-0004-metadata-value-attributes-revision-2/86488 "2026-05-13T10:18:14Z")

</div>

Hi all, The revised proposal SLG-0004: Metadata values privacy attribute for swift-log is now up and In Review. The first revision was discussed here. The review period will run until May 12th — please feel free to pos…

---

## [\[Proposal\] SLG-0004: Metadata values privacy attribute](https://forums.swift.org/t/proposal-slg-0004-metadata-values-privacy-attribute/85249)

<div class="topic-metadata">

**Author:** [@kukushechkin](https://forums.swift.org/u/kukushechkin)\
**Replies:** 15\
**Last updated:** [April 2, 2026, 10:03am UTC](https://forums.swift.org/t/proposal-slg-0004-metadata-values-privacy-attribute/85249 "2026-04-02T10:03:37Z")

</div>

Hi all, The proposal SLG-0004: Metadata values privacy attribute for swift-log is now up and In Review. The review period will run until March 17th — please feel free to post your feedback as a reply to this thread. T…

---

## [\[Proposal\] SLG-0005: LogEvent LogHandler API](https://forums.swift.org/t/proposal-slg-0005-logevent-loghandler-api/85217)

<div class="topic-metadata">

**Author:** [@kukushechkin](https://forums.swift.org/u/kukushechkin)\
**Replies:** 11\
**Last updated:** [March 18, 2026, 4:03pm UTC](https://forums.swift.org/t/proposal-slg-0005-logevent-loghandler-api/85217 "2026-03-18T16:03:04Z")

</div>

Hi all, The proposal SLG-0005: LogEvent LogHandler API for swift-log is now up and In Review. The review period will run until March 16th — please feel free to post your feedback as a reply to this thread. Thanks!

---

## [\[Proposal\] SLG-0003: Standardized Error Metadata via Logger Convenience](https://forums.swift.org/t/proposal-slg-0003-standardized-error-metadata-via-logger-convenience/84518)

<div class="topic-metadata">

**Author:** [@kukushechkin](https://forums.swift.org/u/kukushechkin)\
**Replies:** 43\
**Last updated:** [March 10, 2026, 9:32pm UTC](https://forums.swift.org/t/proposal-slg-0003-standardized-error-metadata-via-logger-convenience/84518 "2026-03-10T21:32:45Z")

</div>

Hi all, The proposal SLG-0003: Standardized Error Metadata via Logger Convenience for swift-log by Samuel Murray is now up and In Review. The review period will run until Feb 9th — please feel free to post your feedbac…

---

## [\[Proposal\] SLG-0002: Compile-time log level elimination using traits](https://forums.swift.org/t/proposal-slg-0002-compile-time-log-level-elimination-using-traits/83542)

<div class="topic-metadata">

**Author:** [@kukushechkin](https://forums.swift.org/u/kukushechkin)\
**Replies:** 12\
**Last updated:** [December 11, 2025, 11:46am UTC](https://forums.swift.org/t/proposal-slg-0002-compile-time-log-level-elimination-using-traits/83542 "2025-12-11T11:46:33Z")

</div>

Hi all, The proposal SLG-0002: Compile-time log level elimination using traits for swift-log is now up and In Review. The review period will run until Dec 10th - please feel free to post your feedback either as a reply…

---

## ["Unsupported runtime" error and yet I'm in Darwin/macOS](https://forums.swift.org/t/unsupported-runtime-error-and-yet-im-in-darwin-macos/82246)

<div class="topic-metadata">

**Author:** [@Q-Bert](https://forums.swift.org/u/Q-Bert)\
**Replies:** 1\
**Last updated:** [September 22, 2025, 4:35pm UTC](https://forums.swift.org/t/unsupported-runtime-error-and-yet-im-in-darwin-macos/82246 "2025-09-22T16:35:21Z")

</div>

Updated to macOS v26; Updated VSCode; Updated Swift extension (swiftlang.swift-vscode) to 2.11.20250806; Updated the Swift toolchain: swiftly install latest; swiftly uninstall 6.1.3 Swift: Clear Build Folder; Swift: Re…

---

## [Systemd swift-log support](https://forums.swift.org/t/systemd-swift-log-support/77047)

<div class="topic-metadata">

**Author:** [@lukeh](https://forums.swift.org/u/lukeh)\
**Replies:** 10\
**Last updated:** [January 12, 2025, 3:05am UTC](https://forums.swift.org/t/systemd-swift-log-support/77047 "2025-01-12T03:05:48Z")

</div>

As it says on the tin.

---

## [Using swift-log with swift-testing, how to bootstrap logging system](https://forums.swift.org/t/using-swift-log-with-swift-testing-how-to-bootstrap-logging-system/75235)

<div class="topic-metadata">

**Author:** [@mman](https://forums.swift.org/u/mman)\
**Replies:** 3\
**Last updated:** [October 9, 2024, 9:43am UTC](https://forums.swift.org/t/using-swift-log-with-swift-testing-how-to-bootstrap-logging-system/75235 "2024-10-09T09:43:34Z")

</div>

My code uses swift-log to generate log messages. My unit tests have been successfully migrated to swift-testing. I am on latest swift 6.0 with strict concurrency checking. Now I want to bootstrap a global LoggingSyste…

---

## [Collecting Design Requirements for a General Purpose Logging Backend](https://forums.swift.org/t/collecting-design-requirements-for-a-general-purpose-logging-backend/72478)

<div class="topic-metadata">

**Author:** [@dimi](https://forums.swift.org/u/dimi)\
**Replies:** 7\
**Last updated:** [June 14, 2024, 4:02pm UTC](https://forums.swift.org/t/collecting-design-requirements-for-a-general-purpose-logging-backend/72478 "2024-06-14T16:02:11Z")

</div>

After discussing this somewhat on slack, we decided it would be a good idea to collect design requirements from the server community for what you would need or like to see out of a "default choice" general-purpose loggin…

---

## [Exporting OSLogEntryLog array in iOS as Log Archive to be opened in the Console](https://forums.swift.org/t/exporting-oslogentrylog-array-in-ios-as-log-archive-to-be-opened-in-the-console/67280)

<div class="topic-metadata">

**Author:** [@marcoboerner](https://forums.swift.org/u/marcoboerner)\
**Replies:** 1\
**Last updated:** [September 15, 2023, 7:37am UTC](https://forums.swift.org/t/exporting-oslogentrylog-array-in-ios-as-log-archive-to-be-opened-in-the-console/67280 "2023-09-15T07:37:02Z")

</div>

We're currently switching from the outdated XCGLogger to OSLog for logging in our iOS app. I managed to retrieve and export the logs as a simple string. However, I was wondering if there is a way to format the exported f…

---

## [Swift app on distroless images](https://forums.swift.org/t/swift-app-on-distroless-images/61454)

<div class="topic-metadata">

**Author:** [@t089](https://forums.swift.org/u/t089)\
**Replies:** 9\
**Last updated:** [May 31, 2023, 10:41am UTC](https://forums.swift.org/t/swift-app-on-distroless-images/61454 "2023-05-31T10:41:37Z")

</div>

Hey all, I wanted to share some experience with experimenting running a server side swift app on distroless images. This produces relatively small container images ideal for deploying to k8s clusters. The app is a simp…

---

## [Swift-log API add async await to avoid problems in async code](https://forums.swift.org/t/swift-log-api-add-async-await-to-avoid-problems-in-async-code/62913)

<div class="topic-metadata">

**Author:** [@doozMen](https://forums.swift.org/u/doozMen)\
**Replies:** 5\
**Last updated:** [February 13, 2023, 12:31pm UTC](https://forums.swift.org/t/swift-log-api-add-async-await-to-avoid-problems-in-async-code/62913 "2023-02-13T12:31:25Z")

</div>

I recently wrote a cli tool using AsyncParsableCommand everywhere and sushichop/Puppy: A flexible logging library written in Swift as the logger. I noticed sometimes my last log was not running. This was due to puppy tha…

---

## [State of the Logging (swift-log) package](https://forums.swift.org/t/state-of-the-logging-swift-log-package/50943)

<div class="topic-metadata">

**Author:** [@Frizlab](https://forums.swift.org/u/Frizlab)\
**Replies:** 1\
**Last updated:** [August 6, 2021, 6:01am UTC](https://forums.swift.org/t/state-of-the-logging-swift-log-package/50943 "2021-08-06T06:01:53Z")

</div>

I’m trying to determine the state of the Logging packages on Swift in general, and in particular on Apple platforms. On Linux/non-Apple Platforms As far as I understand, on non-Apple platform, the default logging packag…

---

## [New SwiftLog implementation](https://forums.swift.org/t/new-swiftlog-implementation/41919)

<div class="topic-metadata">

**Author:** [@sushichop](https://forums.swift.org/u/sushichop)\
**Replies:** 2\
**Last updated:** [November 12, 2020, 10:36am UTC](https://forums.swift.org/t/new-swiftlog-implementation/41919 "2020-11-12T10:36:44Z")

</div>

I built this library that supports multiple transports(console, file, syslog, etc.) as loggers. It not only works alone, but also as a backend for swift-log. Furthermore, it has file log rotation feature and you can also…

---

## [GCP Stackdriver LogHandler (StackdriverLogging 0.1.0)](https://forums.swift.org/t/gcp-stackdriver-loghandler-stackdriverlogging-0-1-0/27018)

<div class="topic-metadata">

**Author:** [@jordanebelanger](https://forums.swift.org/u/jordanebelanger)\
**Replies:** 13\
**Last updated:** [July 30, 2020, 2:30am UTC](https://forums.swift.org/t/gcp-stackdriver-loghandler-stackdriverlogging-0-1-0/27018 "2020-07-30T02:30:25Z")

</div>

I made an apple/swift-log LogHandler for GCP stackdriver (currently only supports logging to a file monitored by logging-agent and a json config) Feedback welcome!

---

## [New swift-log testing LogHandler](https://forums.swift.org/t/new-swift-log-testing-loghandler/30980)

<div class="topic-metadata">

**Author:** [@neallester](https://forums.swift.org/u/neallester)\
**Replies:** 3\
**Last updated:** [November 21, 2019, 3:12pm UTC](https://forums.swift.org/t/new-swift-log-testing-loghandler/30980 "2019-11-21T15:12:18Z")

</div>

It is designed to capture and format log messages for use in assertions and is available here.
