• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: debugging a System Preferences pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: debugging a System Preferences pane (From: Manooch Khajeh <email@hidden>)

  • Prev by Date: Re: Memory Requirements
  • Next by Date: Re: Stop a NSTask
  • Previous by thread: Re: debugging a System Preferences pane
  • Next by thread: debugging a System Preferences pane
  • Index(es):
    • Date
    • Thread