iOS Swift: Reading Logger logs in crash report - ios

I have a crash report sent over TestFlight. Is it possible to read my logs from this crash report?
I had default logs in my code written using Logger like this:
let logger = Logger()
logger.log(">> THIS IS A LOG MESSAGE")
I tried "Show Package Content" of the crash report and went to the logs, but I could only see how the crash happened without my logs. Is there anyway to show my logs in crash reports?

Related

TestFlight not providing crash log

For a certain crash I am only getting TestFlight feedback and not the crash log. Meaning I cannot open the crash in Xcode to figure out what the issue is. Is there a reason for this?
How can I get the crash log?

Google Analytics Crash and Exception report

I wrote below code for Google analytics crash report.
GAI.sharedInstance().trackUncaughtExceptions = true
I am trying to generate crash report. I kept some code which is causing App crash but i can't see any report in behavior -> crash and exception.
Could you please suggest?

Could not find crash in Symbolicating iPhone App Crash Reports

Sample Iphone App Crash Report
Hi this is Symbolicating iPhone App Crash Reports image. I could not found where is crash so can u help me find crash
Use Symbolicatecrash tool, you can check the link to know how to use the tool to symbolicate your crash report.
As far as your crash is concern, it happened in thread 0 however to know exactly what went wrong in code, you need to symbolicate your crash because crash log is only showing addresses.

When the crash log produced?

My Question is that : when and how often our Xcode produce crash logs?
reproduced steps as below:
1.Clear the log '~/Library/Logs/DiagnosticReports/' && '~/Library/Logs/CrashReporter/MobileDevice/' to make sure that all
history crash logs were removed from mac
Simulate one crash from project [e.g.: insert nil object to dic]
Check the path ~/Library/Logs/DiagnosticReports/
Result: I can't find the crash logs. [i tried device also ,get the same empty crash log]

Add logs in xCode console with ASL

I have implemented logging functionality with ASL. And I can see logging in the Console application in MAC OS. Is there any way by which I can see console logs produced by ASL Logger redirected in Xcode Console?
I have opened ask by below statement.
asl_open(NULL, "com.apple.console", 0);
which is logging in apple's console. can I change in above statement and get the logging in Xcode's console.

Resources