Phonegap应用程序错误处理,将日志提交到服务器 [英] Phonegap app error handling, submit log to server

查看:41
本文介绍了Phonegap应用程序错误处理,将日志提交到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Phonegap应用程序,因此我在想是否存在一种以某种方式将应用程序崩溃报告(主要是javascript的console.logs)提交到服务器的方法,还是我必须手动进行并将其记录为文本提交并提交?

I am developing a Phonegap app, so I am thinking is there a good way to submit app crash report (mainly console.logs of javascript) to the server somehow or do I have to do it manually and log it to a text file and submit?

推荐答案

您可以使用错误跟踪服务来跟踪JavaScript错误,以获取有关错误的信息. Bugsnag 是一个不错的选择. Bugsnag JS通知程序应该可以在Cordova/Phonegap上很好地工作.

You can use an error tracking service that tracks JavaScript errors to get information on your errors. Bugsnag is a good choice. The Bugsnag JS notifier should work well with Cordova/Phonegap.

这篇关于Phonegap应用程序错误处理,将日志提交到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆