Reputation: 14392
This is related to Filter output in logcat by tagname. How can I filter out a tagname. Ex - If I don't want the tagname GNU.IO to be echoed to stdout, I would like something which would do the equivalent of -
adb logcat | grep -v <tagname>
Unfortunately the above is not working for me.
Upvotes: 1
Views: 6845
Reputation: 555
Just set specific tag's level to S(ilent):
adb logcat <TAG>:S
as result, you'll see all messages excluding TAG
Upvotes: 0
Reputation: 14392
I found that this works well for what I wanted -
adb logcat -s TAG:V
Upvotes: 4
Reputation: 23514
logcat won't do it for you, but if you want the device to do the work, you could use adb shell
:
adb shell 'logcat | grep -v <tagname>'
Upvotes: 6