简体   繁体   English

如何获取Android Live应用的日志和崩溃数据?

[英]How to get the Log and Crash data for android live app?

I have developed one android application. 我已经开发了一个Android应用程序。 Now we are testing this application in production environment. 现在,我们正在生产环境中测试此应用程序。

I have to track the below information with out depending on tester to share the log file, 我必须跟踪以下信息,而不必依靠测试人员来共享日志文件,

  1. Send Log file. 发送日志文件。 May be Logcat data. 可能是Logcat数据。 Foe Example If any web service fails we need to write that into log file then same needs to be sent to the server or to given mail id. 敌人的例子如果任何Web服务失败,我们需要将其写入日志文件,则需要将其发送到服务器或给定的邮件ID。

  2. If there is any crash in our app then we can get the stach track by using getDefaultUncaughtExceptionHandler then we need to send the stack trace info via mail or send it to web server. 如果我们的应用程序发生任何崩溃,那么我们可以使用getDefaultUncaughtExceptionHandler获取stach跟踪,然后我们需要通过邮件发送堆栈跟踪信息或将其发送到Web服务器。

  3. Or else I can use any solution provider like Google Analytics, Crashlytics or else I can write the log data to text file. 否则,我可以使用任何解决方案提供商(例如Google Analytics(分析),Crashlytics),也可以将日志数据写入文本文件。 And then same to be sent via mail on a daily or weekly basis. 然后每天或每周通过邮件发送。

Help me on this. 帮助我。

现在该到您移至crashlytics https://try.crashlytics.com/或critisism http://www.crittercism.com/的时候了,事实上,还有很多其他选择

With a service like http://www.apteligent.com (Crittercism renamed to Apteligent), when looking at a crash, you'll be able to automatically see a log of: web service calls, network connectivity changes, changes to screen views, and app foreground/background events that led up to the crash without manually adding any additional logging to your app: 使用http://www.apteligent.com之类的服务(Crittercism重命名为Apteligent),在崩溃时,您将能够自动查看以下日志:Web服务调用,网络连接更改,屏幕视图更改,以及导致崩溃的应用前景/背景事件,而无需手动向您的应用添加任何其他日志记录:

https://www.apteligent.com/2016/03/working-automatic-breadcrumbs/ https://www.apteligent.com/2016/03/working-automatic-breadcrumbs/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM