I'd like to filter my LogCat based on multiple TAG, How can I achieve this? Should I use Regex in order to filter by multiple TAG?
For example, I have this two lines of code which are used in my codes:
private static final String TAG1 = "My TAG 1";
private static final String TAG2 = "My TAG 2";
Can I filter out the LogCat to show both of them in the result?
您可以通过启用正则表达式并输入:
(My TAG 1)|(My TAG 2)
I have my LOGCAT filter setup like this:
package:mine (tag=:MyTag1 | tag=:MyTag2)
That way I can see messages from only MyTag1
and MyTag2
from my app.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.