Original: Http://stackoverflow.com/questions/5511433/how-to-exclude-certain-messages-by-tag-name-using-android-adb-logcat
Down voteaccepted |
If you're using the adb logcat could pipe it through grep and use it ' s inverted matching:from the grep manpage:
V,--invert-match invert the sense of matching, to select non-matching lines.
For example: $adb Logcat|grep--Invert-Match' Notshownmatchpattern '
You can extend the this by using regular expressions. Example of such an expression: "/^(?:emails|tags|addresses)"
This one would check for either of the given to occur, grep would and not list them. |
Filter out log information for the specified tag
^ (?: TAG1|TAG2|TAG3)
Ignore log information for the specified tag
^(?! TAG1|TAG2|TAG3)
For example, I would like to ignore the log message containing "Surfacetextureclient" or "Trace" in the tag, which can be configured in the Filter by log tag option "^ (?! Surfacetextureclient| Trace) "
"Android" LOGCAT log message Filtering