Search code examples
objective-cmacoscocoanslog

NSLog doesn't work in my blessed HelperTool


To create custom packets and use libpcap, I've created a helper tool that run as root thanks to SMJobBless. In my helper tool, NSLog doesn't send any logs to console.app. I have to use syslog which send me logs in the console, but I've got problems logging objects issues.

Does anyone have an idea why NSLog doesn't work in such a blessed helper tool ?


Solution

  • 3 years after, just found the answer: logs are sent by the HelperTool by root user.

    Launching Console.app with sudo make the logs appear.