Android LogCat Filter for multiple tags in Eclipse

前端 未结 7 1095
南方客
南方客 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:48

    In the latest version of the SDK for Eclipse which now shows two versions for logcat (one deprecated); in the undeprecated version one can combine filters using OR bars: |.

    For example when clicking on the + and bringing up a dialog to create a new filter, give your filter a name and then in one of the fields (for example TAG) enter com.lampreynetworks|Bluetooth and you will see output for all tags containing com.lampreynetworks and Bluetooth. The '*' is implicit here as if any part of the TAG contains any of that text it will be displayed. Also note, there must be no spaces between the OR bars!

    I have not tried combining the 'by TAG' and 'by (some other option)' but somehow I have a feeling that will not work.

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