Turning on NSLogs
Mike Swingler
swingler at apple.com
Wed Nov 30 12:10:25 PST 2011
On Nov 30, 2011, at 10:01 AM, Pete Brunet wrote:
> I'm seeing code like this
>
> #ifdef JAVA_AX_DEBUG
> NSLog(@"%s: %@", __FUNCTION__, value);
> #endif
>
> What is the correct way to turn on a definition?
#define JAVA_AX_DEBUG 1
> 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).
Regards,
Mike Swingler
Apple Inc.
More information about the macosx-port-dev
mailing list