Ahmad Payan Ahmad Payan - 2 months ago 26
Android Question

How to Filter for multiple tags in LogCat in Android Studio?

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?

Answer Source

You can do this by enabling regex and entering:

"My TAG 1" | "My TAG 2"