Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 2.25 KB

logging.md

File metadata and controls

42 lines (22 loc) · 2.25 KB

Logging

Logging Libraries

Alternatives to OSLog (which is made for Apple, not for developers)

Unified Logging System

If you’re still using print statements to debug your App it’s time you moved to the unified OS logging framework.

Logging is an excellent technique to track and understand user actions through the app. This week we will learn how to implement proper logging functionality in our apps.

Apple provides us a framework to utilize its logging system backed by on-disk persistence. This week we will talk about exporting logs from the user devices by leveraging the power of the Unified Logging System.

OSLog is a unified logging framework available for a long time, but I haven’t adopted it much. But things are about to change with a new feature from WWDC 2023.

Using the OSLog framework for logging in your Apps? How do you retrieve those logs at runtime to show them in your App?

Notes from Michael Tsai.

In this post, I’d like to show you how you can set up a Logger from the OSLog framework in your app, and how you can use it to log messages that can help you debug your app and gain insights about problems your users experience.

Other