First of all I have been reading some threads about CocoaLumberjack and I have not been able to find solution to this question:
I'm using CocoaLumberjack to Log in my app. But I want to Log the app crashes too.
I have tried this:
void uncaughtExceptionHandler(NSException *exception) {
DDLogError(@"CRASH: %@", exception);
DDLogError(@"Stack Trace: %@", [exception callStackSymbols]);
// Internal error reporting
// Send log to SOA
}
But I'm getting this error in the appDelegate, in other places works well:
Use of undeclared identifier '_cmd'; did you mean 'dcmd'
?
Is there another way to do this?.