Does a Crashlytics-like service for web app exists

2020-05-25 17:47发布

问题:

I am a web and iOS developer. On mobile we have famous tools to collect all the exceptions and errors that application thorws.

There's Crashlytics (and others) that with few lines of code to install the sdk, start tracking everything automatically. Then them display the error and useful informations on their website with priority and other stats.

Exists something like that for web applications? Or explicitly for php or js apps?

Thanks ;)

回答1:

www.exceptional.io is exactly what you're asking for. It costs $9 per month after a free trial.

Integration with PHP is done by including a wrapper and a couple of lines of code: https://github.com/ankane/exceptional-php/

It can also be integrated with javascript with a couple of lines:

<script type="text/javascript" src="http://js.exceptional.io/exceptional.js"></script>
<script type="text/javascript">
  Exceptional.setKey('your_api_key');
</script>

Another option is New Relic, although it does a lot more than purely error logging - it provides all kinds of server monitoring metrics. https://docs.newrelic.com/docs/applications-menu/errors-dashboard



回答2:

There's was a great discussion on this topic by Paul Irish on Google+ https://plus.google.com/+PaulIrish/posts/12BVL5exFJn (No longer available after Google+ closed). But here is the summary of that post.

Some of the services mentioned:

  • bugsense.com
  • jslogger.com
  • qbaka.com
  • muscula.com
  • errorception.com
  • exceptionhub.com
  • bugsnag.com
  • exceptional.io
  • airbrake.io
  • getsentry.com
  • github.com/Offbeatmammal/jsErrLog - open source
  • github.com/occ/TraceKit - most comprehensive stacktrace library