在Android中,如何通过应用程序包名过滤logcat?

在Android中,如何通过应用程序包名过滤logcat?,android,process,adb,logcat,android-logcat,Android,Process,Adb,Logcat,Android Logcat,我尝试了以下命令: // private final String LOGCAT_CMD = "logcat :V *:S"; // private final String LOGCAT_CMD = "logcat | grep "; // private final String LOGCAT_CMD = "logcat :I com.*****.filterlogcat:V *:S"; 但它不按应用程序包名称过滤。 在com.user.weatherapp上搜索您的包名

我尝试了以下命令:

// private final String LOGCAT_CMD = "logcat :V *:S";
// private final String LOGCAT_CMD = "logcat | grep ";
// private final String LOGCAT_CMD = "logcat :I com.*****.filterlogcat:V *:S";
但它不按应用程序包名称过滤。

在com.user.weatherapp上搜索您的包名