Android的日志记录 - 如何清除有更好的表现 [英] Android Logging - How to clear for better performance

查看:215
本文介绍了Android的日志记录 - 如何清除有更好的表现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新建Android和只是看着 http://developer.android.com /reference/android/util/Log.html

New to Android and just looked at http://developer.android.com/reference/android/util/Log.html

我的问题是关于除了调试一切。如何将这些日志条目被清除,如错误,让他们不占用空间?此外,有没有一种方式,日志文件可以进行查询,以便它可以被发送到一个中央Web服务或一些品质的目的等等?

My question is regarding everything except debug. How do these Log entries get cleared such as Error so that they don't consume space? Also, Is there a way that the logfile can be queried so that it can be sent to a central web service or something for quality purposes etc.?

推荐答案

日志空间的设备上的所有应用程序共享有限的资源。较新的项目推出旧的。您可以阅读日志,如果你有正确的权限,但可以被用户认为是无礼/间谍软件的边缘,因为它会给你的不仅仅是你的应用有助于日志更多的信息。

Log space is a limited resource shared by all apps on the device. Newer entries push out older ones. You can read the logs if you have the correct permission, but this can be considered rude/borderline spyware by users since it will give you much more information than just what your app contributes to the log.

您已经可以得到市场应用问题报告的数据由系统报告:的http://android-developers.blogspot.com/2010/05/google-feedback-for-android.html

You can already get problem report data for Market apps as reported by the system: http://android-developers.blogspot.com/2010/05/google-feedback-for-android.html

这篇关于Android的日志记录 - 如何清除有更好的表现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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