Show unified logs in Preview console

Hello,

I use Preview to quickly test functionalities. However I found that the unified logging does not output to Preview console. So I had to do both log.debug and print. Is there a way to enable logging to Preview console?

Replies

Hi,

Happy to hear you are finding Previews useful! Unfortunately it is a known limitation that os_log/Logger output does not show up in the Preview console. For now you'll have to either switch those to use print or use macOS Console.app to see the unified logging output from your previews.

Thanks. Actually there is but little info on how to use Console.app to get logs. Do I have to stream all logs and search through all of them to locate my logs? Is there a way to just stream Preview or Xcode logs? I don't want it to take a hit on my system performance.

I have a bunch of links and other info about the system log facility in Your Friend the System Log.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"