您的位置:首页 > 其它

adb logcat filter doesn't work

2012-03-30 16:40 423 查看
My Android application tries to log some runtime information with Log.i ("myTag", rtMsg)

According to Android developer documents, I will be able to use "adb logcat myTag:I" to filter those information. One can set a list of filters, and use white space to separate them, here I used a filter myTag:I, saying that I would like to get log entries
with tag "myTag" and priority level at least I.

However, I got too many spams. Later I figured out that those filters are connected by disjunction relation, and the default filter is "*:I", that's why I thought my filter did not work.

So how to fix? Easy~~

adb logcat -s myTag

(-s tries to set the default filter to silent, which is the highest priority level)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: