我在用着
adb -s [deviceId] logcat
将设备的日志输出打印到 cmd。但现在我想在显示的输出中添加一个 TAG 过滤器。我怎样才能做到这一点?
我在用着
adb -s [deviceId] logcat
将设备的日志输出打印到 cmd。但现在我想在显示的输出中添加一个 TAG 过滤器。我怎样才能做到这一点?
使用 -s 选项。
adb logcat -s MyActivity
取自链接@How to filter Android logcat by application?
有关选项列表,请查看以下链接
http://developer.android.com/tools/help/logcat.html
对于标记检查以下链接
http://developer.android.com/reference/android/util/Log.html
尝试这个:
亚行日志猫 | findstr 我的活动
findstr 在 Windows 中是“grep”。过滤任何你想要的东西。