#OSLog
Print logging is convenient, but risky when you accidentally leak API keys or user data into production logs.

Sagar Unagar explains how to use OSLog instead and why it is better in every way:

go.peterfriese.dev/swift-loggi...
Swift Logging - Use OSLog Instead of print()
Learn why print() slows release builds and how Swift’s Logger delivers categorized, color-coded logs you can filter in the macOS Console app.
go.peterfriese.dev
October 27, 2026 at 10:30 AM
I've been working on a new project called LimeLight.

Here is a quick look at what I'm building and why:

go.peterfriese.dev/what-i-am-w...
Not only Swift - Issue #107
Michael Long on iPhone Duo and singletons in Swift dependency injection, Felix Rieseberg on being more ambitious with models, calming down Claude with REVIEW.md, App Attest, OSLog, and positioning SwiftUI views around the fold.
peterfriese.dev
October 28, 2026 at 2:30 PM
Here is your updated list of iOS, Swift, and AI conferences for 2026:

go.peterfriese.dev/conferences...
Not only Swift - Issue #107
Michael Long on iPhone Duo and singletons in Swift dependency injection, Felix Rieseberg on being more ambitious with models, calming down Claude with REVIEW.md, App Attest, OSLog, and positioning SwiftUI views around the fold.
peterfriese.dev
October 26, 2026 at 5:30 PM
📱 Not only Swift #107 is out! 🗞️

• Everything is Shared on iPhone Duo (@hmlongco.bsky.social)
• More ambitious with models (Felix Rieseberg)
• Calming down Claude (@mergesort.me)
• SwiftUI around the fold (@natpanferova.bsky.social)

peterfriese.dev/newsletter/...
Not only Swift - Issue #107
Michael Long on iPhone Duo and singletons in Swift dependency injection, Felix Rieseberg on being more ambitious with models, calming down Claude with REVIEW.md, App Attest, OSLog, and positioning SwiftUI views around the fold.
peterfriese.dev
October 23, 2026 at 9:30 AM
Oslog bereitet prima auf Eurovision-Song-Contest vor https://textundblog.de/?p=3534 Bei @Niggi hab ich vor 3 Jahren den Grand-Prix-Tipp gewonnen! #esc
November 22, 2024 at 5:33 PM
Das ruft Erinnerungen ans Oslog hervor. Hach ❤️
May 16, 2026 at 6:08 PM
tried to replace Xcode with Cursor but it still sucks for iOS dev

- incremental build way slow, need to CMD back to Xcode for fast builds (don't want to repeatedly do)
- can't debug properly. breakpoints flaky, can't print variables in SwiftUI view hierarchy, OSLog straight up doesn't work
April 27, 2025 at 2:58 PM
Did you look into using swift-log instead? OSLog by itself doesn’t seem to be useful outside of single sessions since it’s impossible to get logs from previous sessions. mastodon.social/@davedelong/...
Dave DeLong (@davedelong@mastodon.social)
There is zero benefit to using the OSLog APIs in your own app. The logs are hard to get in your own app, and *impossible* to get from previous app runs. You can't get logs from a device except via a s...
mastodon.social
November 23, 2024 at 10:01 PM
Version 4.6.0 of syslog-ng features not just a new, native log collector for MacOS, but also darwin-oslog-stream(), which can also collect non-persistent log events.

www.syslog-ng.com/community/b/...

You can already install it from Homebrew!
March 7, 2024 at 9:30 AM
Version 4.6.0 of syslog-ng features darwin-oslog-stream(), which can also collect non-persistent log events. Beware that it can collect many megabytes of logs even in just a few minutes! However, if you need to debug MacOS, these logs might come handy.
www.syslog-ng.com/community/b/...
Collecting even more logs on MacOS using syslog-ng
Version 4.6.0 of syslog-ng features not just a new, native log collector for MacOS, but also darwin-oslog-stream(), which can also collect non-persistent log events. Beware that it can collect many me...
www.syslog-ng.com
February 6, 2024 at 2:21 PM
Do you use syslog-ng on MacOS? Starting from the soon to be released version 4.6.0 syslog-ng features native log collection on the OS:
www.syslog-ng.com/community/b/...

It is based on the OSLog framework, and works on any supported MacOS version. It is now enabled in the system() source
Native MacOS source in syslog-ng
You know that support for MacOS is important when every third visitor at the syslog-ng booth of Red Hat Summit asks if syslog-ng works on MacOS. With the upcoming syslog-ng version 4.6.0, syslog-ng no...
www.syslog-ng.com
January 25, 2024 at 2:41 PM
Here's another reason to stop using print statements in your code and start using OSLog instead!

💪 You can access os_log events from instruments to give you a better chance at fixing those pesky performance issues.
October 13, 2025 at 11:00 AM
What are your ways of using OSLog in #swift? How do you define and split your app with subsystem and categories?
December 9, 2024 at 10:29 AM
It's "###" for me 😅 I hope this habit will vanish with Xcode 15 OSLog 🤞 https://twitter.com/rockbruno_/status/1694632538491257185
November 19, 2024 at 4:38 PM
I was working on another script that uses my #perl #macos log adapter, and ran into all kinds of issues. So I fixed and pushed out version 0.0.6 to CPAN: https://metacpan.org/release/MJGARDNER/Log-Any-Adapter-MacOS-OSLog-0.0.6

I think that now I'm finally doing FFI::Platypus right, or at least […]
Original post on mastodon.phoenixtrap.com
mastodon.phoenixtrap.com
September 28, 2025 at 4:28 AM
Et voilà, the latest version of my #perl module and script for writing to the #macos Unified Log, no #objectivec or #swift required!

* #cpan: https://metacpan.org/dist/Log-Any-Adapter-MacOS-OSLog
* source on #codeberg […]
Original post on mastodon.phoenixtrap.com
mastodon.phoenixtrap.com
August 17, 2025 at 5:19 PM
Hey #mac #perl people, mind kicking the tires on my latest #cpan distribution? https://metacpan.org/release/MJGARDNER/Log-Any-Adapter-MacOS-OSLog-v0.0.1

It's an adapter for Log::Any that writes to the #macos unified log. It also comes with a script called `maclog` that you can use to send log […]
Original post on mastodon.phoenixtrap.com
mastodon.phoenixtrap.com
August 14, 2025 at 2:26 AM
Good news! My #perl module now successfully logs “Debug” entries to #macOS’ Unified Log!

I've updated the blog post at https://phoenixtrap.com/2025/08/10/perl-macos-oslog/ to reflect this development.

See […]
Original post on mastodon.phoenixtrap.com
mastodon.phoenixtrap.com
August 12, 2025 at 7:16 PM
I'm so glad in my talk that when I mentioned print statements that I also mentioned that I also use OSLog. 😬
Here's another reason to stop using print statements in your code and start using OSLog instead!

💪 You can access os_log events from instruments to give you a better chance at fixing those pesky performance issues.
October 13, 2025 at 8:42 PM
Feed: "The Eclectic Light Company"
By: hoakley on Friday, May 30, 2025
Can you trust times shown in the log?
This compares short time intervals obtained from log entry timestamps obtained from the log show command via Ulbow, those from LogUI using OSLog, and Mach Absolute Time.
eclecticlight.co
May 30, 2025 at 12:00 PM
I think we've manage to adopt OSLog to filter logs in sensible way here. It required some hack, but I'm pretty pretty happy with the result.
February 5, 2025 at 7:50 AM
I try to use OSLog for logging, but gosh it lack the convenience, like when it don't accept String out of the box
December 30, 2024 at 5:19 PM
Zum 60. Geburtstag von Hape #Kerkeling aus den Tiefen des Oslog-Archivs: Wie ich es 2010 *fast* geschafft hätte, aus ihm einen falschen Hasen zu machen. youtu.be/13Ce9Tl_drs?...
Oslog (8): Lena, Hape und wir
YouTube video by oslogtv
youtu.be
December 9, 2024 at 7:44 AM
I’m late to the party, but today I setup oslog in my personal project and learned all about the logging and filtering features from this #wwdc #xcode #ios talk. Great stuff!

developer.apple.com/videos/play/...
Debug with structured logging - WWDC23 - Videos - Apple Developer
Discover the debug console in Xcode 15 and learn how you can improve your diagnostic experience through logging. Explore how you can...
developer.apple.com
January 20, 2025 at 8:07 PM