如何在 Android Studio 中过滤 LogCat 中的多个标签?
How to Filter for multiple tags in LogCat in Android Studio?
我想根据多个 TAG 过滤我的 LogCat,我该如何实现?我应该使用 Regex 以便按多个 TAG 进行过滤吗?
例如,我的代码中使用了这两行代码:
private static final String TAG1 = "My TAG 1";
private static final String TAG2 = "My TAG 2";
我可以过滤掉 LogCat 以在结果中同时显示它们吗?
您可以启用正则表达式并输入:
(My TAG 1)|(My TAG 2)
我想根据多个 TAG 过滤我的 LogCat,我该如何实现?我应该使用 Regex 以便按多个 TAG 进行过滤吗?
例如,我的代码中使用了这两行代码:
private static final String TAG1 = "My TAG 1";
private static final String TAG2 = "My TAG 2";
我可以过滤掉 LogCat 以在结果中同时显示它们吗?
您可以启用正则表达式并输入:
(My TAG 1)|(My TAG 2)