How to exclude Log Tag in logcat Android Studio?

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.


Another way to answer the question is to exclude all, except …
To block all tags from showing up, except INCLUDE_TAG

(?:INCLUDE_TAG) for one tag
(?:(INCLUDE_TAG1|INCLUDE_TAGx)) for multiple tags

Leave a Comment

tech