Logging: Using the os_log APIs
Version 1.0, 2016-09-13
Xcode 8.0 or later; iOS 10.0 SDK or later
iOS 10.0 or later
This sample contains projects to demonstrate using the os_log APIs in C, Objective-C, and Swift. They show the difference between a fault and an error, and the circumstances in which they are acceptable. Refer to these samples to see how to use custom log categories, how to decide which log levels to use, and how to view logs in real time.