Re: debugging a System Preferences pane
Re: debugging a System Preferences pane
- Subject: Re: debugging a System Preferences pane
- From: Ingvar Nedrebo <email@hidden>
- Date: Tue, 19 Mar 2002 12:50:55 +0000
On Tuesday, March 19, 2002, at 03:27 , Manooch Khajeh wrote:
Manuel, Issac, Ingvar:
thanks for your response. I tried what you wrote, but I still do not
get any debug log output.
I have tried printf, fprintf, and NSLog. And none of the three produces
output logs.
It could be that System Preferences redirects stdout/stderr to
/dev/null. Normally printfs and NSLog will show up in the Console, not
in /var/log/system.log.
If I use syslog, the System Preference application crashes with the log
message "syslog: unknown facility/priority".
This program worked for me (example taken from the syslog man page):
#include <syslog.h>
int main(int argc, const char *argv[])
{
syslog(LOG_INFO|LOG_LOCAL2, "my syslog message");
return 0;
}
This shows up in /var/log/system.log as:
Mar 19 12:43:44 xeven ./slog: my syslog message
I.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.