How to exclude Log Tag in logcat Android Studio?

myNameCoad picture myNameCoad · Apr 14, 2015 · Viewed 18.4k times · Source

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)?

Answer

myNameCoad picture myNameCoad · Apr 14, 2015

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.