android中Logcat的TAG过滤
生活随笔
收集整理的這篇文章主要介紹了
android中Logcat的TAG过滤
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
如果代碼中有這樣的log:
Log.e("Foo", "error in foo");
Log.d("Foo", "debug in foo");
打開(kāi)終端:
如果logcat的命令如下:
adb logcat -s Foo:D
則打印:error in foo
debug in foo
如果logcat的命令如下:
adb logcat -s Foo:E
則打印:
error in foo
總結(jié)
以上是生活随笔為你收集整理的android中Logcat的TAG过滤的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: linux下软链接与硬链接
- 下一篇: spring mvc ajaxform