Android studio “Clear All” in log cat, logs still come back when changing log level filter

自古美人都是妖i 提交于 2019-12-12 15:41:49

问题


In LogCat, when I click the "clear all" button, it appears to clear all of the logs. However, if I change the log level, and come back to the previous log level, all of the logs have returned.

For example, I'm looking at "Verbose". I choose "Clear all". The log clears. I switch over to "Debug". I switch back to "Verbose", now all of the Verbose logs that I thought I cleared, have now come back. It displays everything since I opened Android Studio.

Additionally, the same issue occurs if I clear all, and then re-launch my app; I get flooded with old debug messages before seeing any new ones.

Is there any way to remove the logs for good, without having to restart Android Studio?


回答1:


The following screenshot is from Android Studio 1.1 Beta 4.

Hope this helps.




回答2:


Not sure from Android-studio GUI but from command line you can call

adb logcat -c



来源:https://stackoverflow.com/questions/28144166/android-studio-clear-all-in-log-cat-logs-still-come-back-when-changing-log-le

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!