NSLog(@"example");
will ouput :
2012-09-13 04:54:48.128 MyApp[94652:a0f]: example
on the console.
Is there a way I can get it to only output:
example
NSLog(@"example");
will ouput :
2012-09-13 04:54:48.128 MyApp[94652:a0f]: example
on the console.
Is there a way I can get it to only output:
example
If you define this macro and use it instead of NSLog it will only output what you specify.
#define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);