1

On the fly can I read & send the crash logs generated from my previous crash. Which folder should I read? And I want to delete the logs once sent so that for next crash I do not end up sending previous crash logs. I will be sending the logs to server.

Abhinav
  • 36,284
  • 39
  • 178
  • 301

2 Answers2

4

I'm currently using QuincyKit to collect and send crash logs: https://github.com/TheRealKerni/QuincyKit

The framework comes with a server side backend, but if you don't want to run your own server you can also use HockeyApp. As far as I know TestFlight is also planning to offer a similar service.

If you implement your own solution, you probably shouldn't delete the crash logs on the device, but remember the date of the last crash log sent to your server.

Markus Müller-Simhofer
  • 3,293
  • 1
  • 26
  • 30
4

You can access the system logs on iOS using the ASL (Apple System Logger) APIs, previously answered here.

There's a free app in the store that does this, see this answer. I find this is useful to see the logs when you're not connected to Xcode.

Community
  • 1
  • 1
progrmr
  • 71,681
  • 16
  • 107
  • 147