Filtering Logcat Logs on commandline

前端 未结 6 1858
小鲜肉
小鲜肉 2021-02-01 01:59
public static final TAG = \"Legendry Eagle\";

Issue: I want to see logs of \"Legendry Eagle\" from the commandline.

I tried:

6条回答
  •  醉话见心
    2021-02-01 02:49

    If the standard adb logcat -s tagname doesn't work, you can always pipe the output of adb to find to filter what you need, something like

    adb logcat | find "Legendry Eagle"
    

    This passes the entire logcat to DOS find command, which in turn filters out rows containing Legendry Eagle string.

提交回复
热议问题