Android LogCat Filter for multiple tags in Eclipse

前端 未结 7 1092
南方客
南方客 2021-01-30 04:07

Clicked on create filter could not figure out from docs how to create a filter for say two or more tags. If I have two tags com.test.TestClassA and com.test

7条回答
  •  既然无缘
    2021-01-30 04:30

    On Feb 12, 2:58 am, AndroidDevTime wrote:

    If I have two tags com.test.TestClassA and com.test.TestClassB how do I create a filter that shows log for both of these classes?

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

    ^com.test.TestClassA$|^com.test.TestClassB$

    which matches exactly those tags you specified. You could be more economical/efficient/whatever with the regular expression, depending on how much you want to muck around with that.

提交回复
热议问题