If you are using adb logcat you 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 this by using regular expressions.
Here is an example of such an expression:
"/^(?:emails|tags|addresses)"
This one would check for either of the given to occur, grep would then not list them.
本文介绍了如何使用Android的ADB Logcat工具过滤特定的日志信息。通过正则表达式,可以实现显示或忽略指定tag的日志。例如,设置过滤器为'^(?!SurfaceTextureClient|Trace)'可以排除包含'SurfaceTextureClient'和'Trace'标签的日志。

380

被折叠的 条评论
为什么被折叠?



