In adb shell
$ logcat -B -s MyTag
$ logcat -B MyTag:I *:S
Above two commands receive logs only tag MyTag in binary stream.
But it seems to ignore filterspecs argument only in binary mode.
I cannot find any clue to be ignored at logcat.cpp code
Is it possible to apply filterspec with -B binary format?
The
logcatcode is pretty clear:If
context->printBinaryis set to1by specifying the-Bparameter - theprintBinary()is invoked, which does not do any additional processing (like filtering).