Filter tags in LogCat (in Android Eclipse Plug-In)

前端 未结 9 542
有刺的猬
有刺的猬 2020-12-08 15:47

There is a TextField \"Filter\" below the LogCat output. However, it seems to filter only the Message-column. Id like to filter Tags also. Because there are my class names.<

相关标签:
9条回答
  • 2020-12-08 16:19

    The Log tag field accepts Java regular expressions, so try this:

    ^TAG_A$|^TAG_B$
    

    which matches exactly those tags. You can go crazy with complicated regular expressions, if that's your idea of fun.

    0 讨论(0)
  • 2020-12-08 16:22

    A sample from the ADB manual:

    adb logcat ActivityManager:I MyApp:D *:S

    The *:S is vital as this would suppress other tags different than the ones specified by us.

    Unfortunately, one can't use wildcards in the names, i.e.:

    adb logcat ActivityManager:I MyApp*:D *:S

    wouldn't work.

    0 讨论(0)
  • 2020-12-08 16:23

    In LogCat's search textbox, you will see the hint text "Search for messages, Accepts Java regexes, Prefix with pid:, app:, tag: or text: to limit scope."

    So just type in tag:YOUR_TAG_NAME

    0 讨论(0)
提交回复
热议问题