Filtering Logcat Logs on commandline

前端 未结 6 1974
小鲜肉
小鲜肉 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:43

    Assuming you are using Eagle as the logging tag, use this:

    adb logcat Eagle:* *:s

    as I understand the Eagle:* means to turn on all logs for the Eagle tag, and the *:s means to make all other tags silent

    I personally find the eclipse logcat view much easier to use than the command line, it has different colors for different levels of logs, and you can create a filter and save it, it'll stay there forever until you delete that filter

提交回复
热议问题