Central error logging service for web applications

2019-05-08 07:21发布

问题:

I'm about to launch a new website and I'm using Pingdom to track the uptime of the site, but I'm interesting in logging any errors generated by the site in a central location. I'd like to put code into my top level exception handler that will package up the exception and send it to another application, which would then generate an email and send it to me.

I will be logging locally of course, but the logs are difficult to get to when I'm out and about. I have the option of writing my own solution to this, but I don't want to reinvent the wheel if something better exists.

Does anyone know of any companies/sites that offer such a service?

If not, would anyone consider this a useful service?

回答1:

Airbrake looks quite promising. It officially supports Ruby and iOS, and has experimental JavaScript support. There's also 3rd party plugins for various other languages.



回答2:

Loggly is a nice option - it doesn't (or didn't) have all of the alerting options I'd like last time I looked at it, but I gave a free demo account a spin. Might be worth looking at.



回答3:

I'd suggest looking at arecibo. It's an open-sourced error logging app. It has a number of clients libraries (used to log the errors) and can be used in python, php or ruby applications. The server part is written in python/django and can be run on your own server or on Google's app engine.

Worth a look, we're going to be using it to record application errors across our websites, I think it's in use by Bitbucket and Mozilla as well.



回答4:

Something like this: http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/



回答5:

cloud4apps has a remote error logging service API and it's free.



回答6:

If you're developing with .NET and want some ideas, browse this list of Serilog sinks:

http://www.nuget.org/packages?q=serilog+sinks

Give preference toward services hosted near your servers, especially if you anticipate sending a high volume of fine-grained logs. I also like having the option to choose between TCP and UDP.