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

前端 未结 9 584
有刺的猬
有刺的猬 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:14

    Old question, but still relevant, and didn't see this answer among the answers here.

    To filter by multiple columns in logcat textfield, simply use a space between regular expressions, and the column title in lower case followed by : to assign the regex to that column instead of the default "text:"

    for example:

    tag:wif text:event
    

    a space '' is used as an AND argument.
    a single '|' without space is an OR.

    Regarding one of the comments I've seen here - There is no realy need for a wildcard, since it is automatically applied before and after the filter text.
    If you don't want wildcard, you can use regular expression syntax to restrict the string.
    for example: ^starswith or fullword$

    TIP: if you want to match a space character or a tab in your output, just type in: \s at the desired place.

提交回复
热议问题