如何清空的Andr​​oid的logcat的缓冲区 [英] How to empty the logcat buffer in Android

查看:348
本文介绍了如何清空的Andr​​oid的logcat的缓冲区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何清空缓存的logcat在Android中?

我使用从命令行和管道输出到文件亚行logcat,由于DDMS具有非常有限的缓冲器。此刻,当我重新启动我的应用程序(修复bug等之后)logcat的缓冲区已经从previous发布的数据也是如此。即使卸载应用程序并不清除缓冲区。我发现,到目前为止,清除缓冲区的唯一方法,就是重新启动。这是有效的,但想知道是否有更简单的方法。

解决方案

 亚行logcat -c
 

从:<一href="http://developer.android.com/guide/developing/tools/adb.html#logcatoptions">http://developer.android.com/guide/developing/tools/adb.html#logcatoptions

How can I empty the logcat buffer in Android?

I use adb logcat from command line and pipe the output to a file, since the DDMS has a very limited buffer. At the moment, when I restart my app (after fixing bugs etc) the logcat buffer has data from the previous launch as well. Even uninstalling the app does not clear the buffer. The only way I've found so far to clear the buffer, is reboot. This is effective, but would like to know if there's an easier way.

解决方案

adb logcat -c

From: http://developer.android.com/guide/developing/tools/adb.html#logcatoptions

这篇关于如何清空的Andr​​oid的logcat的缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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