30

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 ;)

Cla
  • 1,810
  • 3
  • 22
  • 36
  • you asking web analytics means try this http://loggr.net/ – appukrb Jan 30 '14 at 05:58
  • I don't think Loggr is the solution for that. From their 'How it works' page: "What it's not Loggr is not for web traffic. Use Google Analytics for that. Loggr does not replace syslog or windows event viewer. Use Splunk for that. We do high-level events like errors, sales, usage, job activity, etc." – Cla Jan 30 '14 at 09:32

3 Answers3

31

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
Kyle Chadha
  • 3,741
  • 2
  • 33
  • 42
  • 2
    I tried a few of these today (bugsnag, rollbar, and sentry), and sentry seemed to be the best (and no, I'm not affiliated). Bugsnag was nice, but seemed to miss certain test errors I triggered. And rollbar (which isn't listed here), I didn't like the user interface as much. – Venryx Apr 05 '17 at 12:05
  • Good list. I recommend Sentry these days - I'm using it for JavaScript. – Niall Nov 23 '17 at 10:44
7

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

Niall
  • 457
  • 3
  • 8
  • Wow, Exceptional seems great! I'll test it right away! – Cla Feb 14 '14 at 13:08
  • 3
    Just here to add that nowadays, this solution costs $49/month and renamed to Airbrake. – Baksteen Nov 17 '17 at 10:28
  • @Baksteen Wow, that's quite a cost. I'm getting away with using Sentry.io on the free plan now, though that won't be suitable for bigger operations. – Niall Nov 23 '17 at 10:44
  • Update: This solution now costs $59 per month and goes upto $599 for top plan – Ramesh Nov 05 '19 at 03:04
3

Future users may find following useful.

Sentry is a Crashlytics like solution for lots of platforms

  • Web front-ends and their frameworks / libraries like React, Angular, Vue.
  • Back-ends languages and their runtimes / frameworks / libraries like Rails, Express, Lavarel.
  • Serverless platforms
  • IoT
  • Mobile clients including frameworks like React Native, Flutter.
  • Desktop platforms ex: MacOS, Windows, Linux
  • Gaming platforms ex: Unity, Unreal
  • Data

In addition to error reporting it also support performance monitoring.

More than anything it is a fully open sourced product including the both client and the server, not just opensource core. So it can be fully self hosted.


Note : I am not affiliated with Sentry in anyway.

user158
  • 12,852
  • 7
  • 62
  • 94