Episode #527

From os_log to Logger

11 minutes
Published on May 3, 2022

This video is only available to subscribers. Get access to this video and 585 others.

iOS 14 brought some nice improvements to os_log via a new type called Logger. This leverages Swift's StringInterpolation type to make it much more usable for formatting values inside your logs. It does this without sacrificing the privacy and performance that makes os_log so appealing. In this episode we will see how we can adopt this new API as well as how StringInterpolation works under the hood.

This episode uses Xcode 13.3.