javascript 是否存在类似 Crashlytics 的 Web 应用服务?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21403895/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 20:51:30  来源:igfitidea点击:

Does a Crashlytics-like service for web app exists?

javascriptphpweb-applicationswebcrashlytics

提问by jollyr0ger

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

我是一名网络和 iOS 开发人员。在移动设备上,我们有著名的工具来收集应用程序引发的所有异常和错误。

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.

有 Crashlytics(和其他),只需几行代码即可安装 sdk,自动开始跟踪所有内容。然后他们在他们的网站上显示错误和有用的信息以及优先级和其他统计信息。

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

对于 Web 应用程序是否存在类似的东西?或者明确用于 php 或 js 应用程序?

Thanks ;)

谢谢 ;)

采纳答案by Niall

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

www.exceptional.io正是您所要求的。免费试用后,每月收费 9 美元。

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

与 PHP 的集成是通过包含一个包装器和几行代码来完成的:https: //github.com/ankane/exceptional-php/

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

它也可以通过几行与 javascript 集成:

<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

另一种选择是 New Relic,尽管它不仅仅是纯粹的错误日志记录 - 它提供了各种服务器监控指标。 https://docs.newrelic.com/docs/applications-menu/errors-dashboard

回答by Kyle Chadha

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.

Paul Irish 在 Google+ https://plus.google.com/+PaulIrish/posts/12BVL5exFJn(Google+关闭后不再可用)上对此主题进行了很好的讨论。但这是该帖子的摘要。

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
  • bugsense.com
  • jslogger.com
  • qbaka.com
  • 肌肉网
  • errorception.com
  • 异常中心
  • bugsnag.com
  • 例外.io
  • airbrake.io
  • getentry.com
  • github.com/Offbeatmammal/jsErrLog - 开源
  • github.com/occ/TraceKit - 最全面的堆栈跟踪库