With the introduction of "Unified Logging" in macOS 10.12 Sierra, one can use the log
command to view system log messages in a terminal. For example
sudo log stream
or
sudo log stream --process `pgrep -f /usr/local/bin/myprogram` --info --debug
or
log show --predicate 'process == "myprogram"' --last 1h --info --debug
Using the new "unified" Console.app, one can view system messages and can also view messages from connected iOS devices.
Is there any way to use the log
command or any other command-line interface to view iOS device messages in Terminal, or to send them to a file? Or is Console.app the only way?