Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have just added ASL logging support to my application (a compiled binary) but I cannot see any log entries using Console.app. I am logging with facility 'com.mydomain.myapp' (that's not the actual value) and have added an entry to /private/etc/asl.conf to tell syslogd to 'store' entries at this Facility (with any Level):

? [= Facility com.mydomain.myapp] store

I HUP'd syslogd with no success so I restarted my MacBook Pro, which also made no difference.

I know my application is logging OK as I have added the option ASL_OPT_STDERR when calling asl_open() and can see the entries on stderr. I have also set the filters, using asl_set_filter(), to allow the appropriate levels to be sent to the server.

EDIT: I have seen this article, which gives an alternative way of setting the 'cutoff' value used by syslogd, however than doesn't work either (tried both temporary and permanent fixes):

... the reason you don't see Info or Debug messages is that the syslogd daemon filters them. If you want to change the filtering in syslogd, you can change the startup options in /System/Library/ LaunchDaemons/com.apple.syslogd.plist (add -c and
-7 in the ProgramArguments array). That makes the change "permanent" (until you change the plist again). See the syslogd (8) man page.

Alternatively, you can make a temporary change to the syslogd database filter value using the "syslog" command-line utility. sudo syslog -c syslogd -d

share|improve this question
add comment

1 Answer

You don't say whether this app is a shell script or a compiled binary. If a shell script I have always used the logger command to update logs in syslog. If you are using Xcode and building a compiled Cocoa project you might get better assistance posting to StackOverFlow.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["        <li><a href=\"http://area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"http://careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2013 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> \r\n with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"footer-flair\">\r\n                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2013.12.12.1221\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Super User w", "ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2013 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> \r\n with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"footer-flair\">\r\n                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2013.12.12.1221\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Super User works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </noscript>\r\n<script type=\"text/javascript\">var p = \"http\", d = \"static\"; if (document.location.protocol == \"https:\") { p += \"s\"; d = \"engine\"; } var z "], "copyright__copyright__copyright": ["on't say whether this app is a shell script or a compiled binary. If a shell script I have always used the logger command to update logs in syslog. If you are using Xcode and building a compiled Cocoa project you might get better assistance posting to StackOverFlow.\n\nshare|improve this answer\nadd comment\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}