Re: NSLog output in Sierra?
Re: NSLog output in Sierra?
- Subject: Re: NSLog output in Sierra?
- From: Alex Zavatone <email@hidden>
- Date: Thu, 12 Jan 2017 01:47:44 -0600
On Jan 12, 2017, at 12:04 AM, Jon Gotow wrote:
>
>> On Jan 11, 2017, at 2:08 PM, Carl Hoefs <email@hidden> wrote:
>>
>> This 2014 Apple TechNote: https://developer.apple.com/library/content/technotes/tn2347/_index.html claims that on macOS NSLog calls issued during app execution are logged in the console log. I can verify that this used to be the case, but now that I'm running Sierra 10.12.2, none of the NSLogs show up in the 'system log'. Where do they go? Where can I see the NSLog output from my background Foundation daemon process?
>
> In the Console, select your machine in the Devices section of the sidebar, then type in the name of the daemon in the search field. Oh, and click on the "Now" button in the toolbar to keep the Console scrolling as new data comes in. Any new NSLog messages should show up in the log window.
>
> I don't believe NSLog messages are committed to the system.log file anymore, so you can't see messages that were logged before you launched Console.app. If you want to see older messages you can dump them using the 'log' command from the command line. Something like:
>
> log show --info --debug --predicate 'senderImagePath endswith "DAEMON_NAME"'
>
> Yes, it's completely non-intuitive, IMO. Check out the WWDC video on the new logging system at https://developer.apple.com/videos/play/wwdc2016/721/ - it at least explains some scenarios where the new logging system makes sense. The problem is that it's a big change from the old, simple-minded NSLog output that worked fine for many developers and users.
>
> - Jon
Wow. That blows. I mean, it's really stupid and half assed to release the product like that. How is this remotely close to acceptable?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden