Tuesday, November 29, 2016

Easiest Way to Get the Crash Logs

The Android part for collecting crash logs is under authoring so for this post lets see how to collect crash logs in iOS device.

Wondering how to get the crash logs for the apps being tested on iOS? The easiest way is to get them from the phone settings themselves. The crash logs are stored within the phone. Let's see how to locate them

Locating crash logs

1. Tap on "Settings" icon on your iPhone.

2. On Settings screen tap on "Privacy" option.

Privacy Option












3. On Privacy screen scroll down and tap on "Diagnostics & Usage" option.

"Diagnostics & Usage" option












4. On "Diagnostics & Usage" screen tap on "Diagnostics & Usage Data" option.

"Diagnostics & Usage Data" option













5. On "Data" screen all the crash logs would be listed. Pick the crash log you need.

Data Screen












Important Tip

The "Diagnostics & Usage Data" screen contains logs from all the apps so how to locate your app-specific logs out of so many logs? 

All the logs are sorted alphabetically based on the name of the log file. For e.g. logs for WhatsApp with the name something like "WhatsApp-20160-11-29-123.ips" would appear down in the list as compared to the logs for the Hike app with the name something like "Hike-2016-11-29-123345.ips".
Also, all the logs for a single app are grouped at one place.

Further, when there are multiple logs for a single app grouped at the single place they are then sorted in ascending order on the basis of Date. For e.g. let's say we have multiple logs for WhatsApp application so in this case the log file with the name "WhatsApp-20160-11-27-180837.ips" would appear before the log file with the name "WhatsApp-20160-11-38-085201.ips". So the latest log for a particular app would be located at the bottom of the list.

Ordering of Logs












Another tip, try to capture the crash logs as soon as the app crashes, the reason being the crash log would be the latest one and would appear at the bottom of the list of logs for that particular app. Delaying in capturing the log might pose some difficulty in locating it.

No comments:

Post a Comment