How to exclude Log Tag in logcat Android Studio?

好久不见. 提交于 2019-11-30 10:25:40

问题


I'm not sure if this kind of question been asked before (I did Google it but not found the proper way to solve my question).

what I hope is I can disable (exclude) Log Tag from libraries used in my project.

I tried to go in Logcat console > Edit Filter Configuration > Log Tag(regex) but here I have to add new Log Tag every time I create it. (and this way will not show any exception in my logcat)

Same as this topic How to filter logcat in Android Studio? I selected select the process running as @dmsherazi suggest but I still can see lots of log tag from libraries.

So, is there a way to exclude specific log tag in android studio (I'm using v1.2 beta3)?


回答1:


I'm sorry for answering my own question after 20 minutes of asking. My friend just sent me a link that solves my question

here it is: How to exclude certain messages by TAG name using Android adb logcat?

for android studio users

go to Logcat console > Edit Filter Configuration > Log Tag(regex) and put this instead

^(?!(EXCLUDE_TAG1|EXCLUDE_TAG2))

note that EXCLUDE_TAG1 and EXCLUDE_TAG2 are Log Tag you exclude from logcat.



来源:https://stackoverflow.com/questions/29619376/how-to-exclude-log-tag-in-logcat-android-studio

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