From WWDC 2016: Unified Logging and Activity Tracing.
os_log
: Critical details for debugging issues.os_log_info
: Additional information to embed in error or fault reports.os_log_debug
: Optional, high-volume information that can be explicitly turned on during development.os_log_error
: Additional app information is bundled into the log message.os_log_fault
: Additional system information is bundled into the log message.
- Did something go wrong that was beyond our control?
- Yes: Was the issue generated by the system outside the app?
- Yes:
os_log_fault
- No:
os_log_error
- Yes:
- No: Is this information only useful in crash reports?
- Yes:
os_log_info
- No: Is this noisy information that we only occassionally want to turn on during development?
- Yes:
os_log_debug
- No:
os_log
- Yes:
- Yes:
- Yes: Was the issue generated by the system outside the app?