This is a question about how to use Apple's Unified Logging framework, also known as "os_log", the function you call from Swift.
Specifically, I want to know if it is possible:
- to view logs in Console.app (not with the
log
command line tool) ... - to see
debug
-level logs (not justinfo
-level logs) ... - for an iOS app running in the Simulator (not just running on a device).
You cannot do this just by running Console.app, pointing at the Simulator, and selecting Action / Include Debug Message, which is the obvious thing to do.
This article suggests that debug
-level logs don't show up because "the 'system' log level is set to info
" but I can't find a discussion anywhere that explains what that means.