Is there a logging framework for iOS that could aid developers in diagnosing app crashes?
This previous question seems to overlap. But the bottom line is:
NSLog(@"message");
or:
printf("message");