android中Logcat的TAG过滤
生活随笔
收集整理的這篇文章主要介紹了
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下软链接与硬链接
- 下一篇: spring mvc ajaxform