如何使用adb logcat过滤OUT <tagname>

Aru*_*Das 1 android

这与logcat中按标记名的过滤输出有关.如何过滤掉标记名.例如 - 如果我不希望标记名GNU.IO被回显到stdout,我想要的东西可以做到相当于 -

adb logcat | grep -v <tagname> 
Run Code Online (Sandbox Code Playgroud)

不幸的是,上述内容对我不起作用.

Ste*_*ice 6

logcat不会为你做,但如果你想让设备完成工作,你可以使用adb shell:

adb shell 'logcat | grep -v <tagname>'
Run Code Online (Sandbox Code Playgroud)

  • adb logcat -s <tagname> ?? (4认同)