Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to best implement simple crash / error reporting?

What would be the best way to implement a simple crash / error reporting mechanism?

Details: my app is cross-platform (mac/windows/linux) and written in Python, so I just need something that will send me a small amount of text, e.g. just a timestamp and a traceback (which I already generate and show in my error dialog).

It would be fine if it could simply email it, but I can't think of a way to do this without including a username and password for the smtp server in the application... Should I implement a simple web service on the server side and have my app send it an HTTP request with the info? Any better ideas?

like image 365
dF. Avatar asked Sep 17 '08 18:09

dF.


People also ask

How to monitor mobile app crashes?

Crashlytics Crashlytics is an integral part of the Google Firebase platforms. It monitors and reports errors and crashes in real time for iOS and Android applications. It gives you detailed and insightful reports so you can zero in on the root cause of crashes and allow you to create events leading to the crash.

What is app crash report?

Firebase Crashlytics, a real time crash reporting tool, helps you prioritize and fix your most pervasive crashes based on the impact on real users. Crashlytics also easily integrates into your Android, iOS, macOS, tvOS, and watchOS apps.


1 Answers

The web service is the best way, but there are some caveats:

  1. You should always ask the user if it is ok to send error feedback information.
  2. You should be prepared to fail gracefully if there are network errors. Don't let a failure to report a crash impede recovery!
  3. You should avoid including user identifying or sensitive information unless the user knows (see #1) and you should either use SSL or otherwise protect it. Some jurisdictions impose burdens on you that you might not want to deal with, so it's best to simply not save such information.
  4. Like any web service, make sure your service is not exploitable by miscreants.
like image 78
nsayer Avatar answered Nov 03 '22 21:11

nsayer