Web 应用程序的中央错误日志记录服务
我即将启动一个新网站,我正在使用 Pingdom 来跟踪该网站的正常运行时间,但我感兴趣的是在一个中心位置记录该网站生成的任何错误。我想将代码放入顶级异常处理程序中,该处理程序将打包异常并将其发送到另一个应用程序,然后该应用程序会生成一封电子邮件并发送给我。
当然,我会在本地进行日志记录,但是当我外出时很难获取日志。我可以选择编写自己的解决方案,但如果存在更好的东西,我不想重新发明轮子。
有谁知道有哪些公司/网站提供此类服务?
如果没有,有人会认为这是一项有用的服务吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
Airbrake 看起来很有前途。它正式支持 Ruby 和 iOS,并具有实验性 JavaScript 支持。还有适用于各种其他语言。
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.
Loggly 是一个不错的选择 - 它没有(或没有)拥有我想要的所有警报选项上次我查看它时,我尝试了一个免费的模拟帐户。可能值得一看。
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.
我建议查看 arecibo。它是一个开源错误日志应用程序。它有许多客户端库(用于记录错误),可以在 python、php 或 ruby 应用程序中使用。服务器部分是用 python/django 编写的,可以在您自己的服务器或 Google 的应用程序引擎上运行。
值得一看,我们将使用它来记录我们网站上的应用程序错误,我认为 Bitbucket 和 Mozilla 也在使用它。
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.
像这样的东西: http: //net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/
Something like this: http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/
cloud4apps 有一个远程错误日志服务 API,而且是免费的。
cloud4apps has a remote error logging service API and it's free.
如果您使用 .NET 进行开发并想要一些想法,请浏览 Serilog 接收器的列表:
http ://www.nuget.org/packages?q=serilog+sinks
优先选择服务器附近托管的服务,特别是当您预计发送大量细粒度日志时。我还喜欢可以在 TCP 和 UDP 之间进行选择。
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.