Turning on NSLogs (original) (raw)
Mike Swingler swingler at apple.com
Wed Nov 30 18:39:25 PST 2011
- Previous message: Turning on NSLogs
- Next message: Tray icon L&F
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Nov 30, 2011, at 2:05 PM, Pete Brunet wrote:
On 11/30/11 2:10 PM, Mike Swingler wrote:
On Nov 30, 2011, at 10:01 AM, Pete Brunet wrote:
I'm seeing code like this
#ifdef JAVAAXDEBUG NSLog(@"%s: %@", FUNCTION, value); #endif What is the correct way to turn on a definition? #define JAVAAXDEBUG 1 Thanks Mike, What I meant was, can I do something like -DJAVAAXDEBUG when invoking make?
I'm not sure - does a Make expert know what the exact syntax is?
I'm also seeing NSLogs which are not bracketed with a define. Does NSLog always output to stdout or does it need a switch of some sort? NSLog goes to both stderr and the ASL database (which Console.app shows and lets you query). I see lots of logs in /Library/Logs. Is one of these the "Java" log?
No, Java applications are not categorically all logged together. You'll have the most success just reading stderr and ignoring the ASL database. I only mentioned it for technical completeness.
Regards, Mike Swingler Apple Inc.
- Previous message: Turning on NSLogs
- Next message: Tray icon L&F
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]