how to get iPhone App Crash Log file from iPhone programmatically
问题 Is there a way to access iphone crash log file via programmatically. I trying to write a crash report feature that when you launch the app after a crash, it will offer to send the crash report to the server. I can't find how to get the crash log within the app. 回答1: You can use the following logic for the same. aslmsg q, m; int i; const char *key, *val; float how_old = fTime ; q = asl_new(ASL_TYPE_QUERY); asl_set_query(q, ASL_KEY_LEVEL, strLoggerLevel ,ASL_QUERY_OP_LESS_EQUAL); asl_set_query