Unified logging on legacy Console app

Hi,


I watched the WWDC 2016 session regarding the unified and I now understand how that works. The only problem is that by using os_log_info and os_log_debug, it doesn't print out those logs on the legacy Console app, or the device logs from Windows > Device and Simulators in Xcode.


This is not an issue for me but for our QAs using the said app from their Mac and PC, though for PC, I'm not even sure if there's an app that can get those kinds of logs. They're using the Lemonjar's iOS Console, which outputs the same device logs as the one from Windows > Device and Simulators in Xcode


We're currently using the Cocoalumberjack's DDOSLogger to perform the os logging. Maybe doing asl logging would be better in this case, which eventually uses os_log


Advice?

legacy Console app

I’m not sure what you mean by this. The appropriate Console utility is built-in to every version of macOS, so how can it be “legacy”?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Sorry, I should have rephrased that. I meant the Console app before the macOS Sierra. I'm sure those versions doesn't have the capabilities for receiving logs through unified logging. There's also the fact that there is no app in Windows that can gather logs as detailed as the current Console app

I'm sure those versions doesn't have the capabilities for receiving logs through unified logging.

That’s correct. For macOS that’s not a problem (earlier versions of macOS don’t use unified logging) but if you’re trying to interactively view logs from an iOS device then, yes, you will need macOS 10.12 or later.

There's also the fact that there is no app in Windows that can gather logs as detailed as the current Console app

Also correct.

IMPORTANT All computers (anything that can sync via iTunes) can collect the unified log via a sysdiagnose. This is not the same thing are getting an interactive log, but it can be useful in many circumstances. You can learn more about sysdiagnose in Bug Reporting > Profiles and Logs. And this post explains how to get the unified log out of the sysdiagnose.

Given the above do you have any further questions?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi, sorry for the very late reply.


I've checked inside sysdiagnose to see if its viable, and despite it containing a lot of detailed logs, I couldn't find any device logs in it, which is the most important log for us to triage. And then there's a fact when it takes a total of around 30 minutes to perform the diagnose and syncing it through iTunes, which is very time consuming. Hence using sysdiagnose is not a viable option.


Our option right now is to asl_logging to do the logging for us, so that it solves the problem in regards to gathering those console logs

Unified logging on legacy Console app
 
 
Q