当前位置:
首页 >
android中Logcat的TAG过滤
发布时间:2025/7/14
32
豆豆
生活随笔
收集整理的这篇文章主要介绍了
android中Logcat的TAG过滤
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
如果代码中有这样的log:
Log.e("Foo", "error in foo");
Log.d("Foo", "debug in foo");
打开终端:
如果logcat的命令如下:
adb logcat -s Foo:D
则打印:error in foo
debug in foo
如果logcat的命令如下:
adb logcat -s Foo:E
则打印:
error in foo
总结
以上是生活随笔为你收集整理的android中Logcat的TAG过滤的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: linux下软链接与硬链接
- 下一篇: Binary Tree Preorder