Sunday 15 August 2010

android - How do you filter by application name wildcard using logcat command line -



android - How do you filter by application name wildcard using logcat command line -

so in eclipse, filter app:com.foo, , com.foo, com.foo.bar, com.foo.baz, etc...

is there way on command line?

reference: http://developer.android.com/tools/debugging/debugging-log.html

from command line, can filter logcat messages tag , level. example

adb logcat myapplicationtag:i *:s

will show of messages "myapplicationtag" tag, @ info level (note ":i") or above. "*:s" silences other message.

==================================

to show messages multiple tags:

adb logcat myapplicationtag:i com.foo.bar:i com.foo.baz:i *:s

==================================

to accomplish asked (filtering via wildcard specification), allow shell filtering. seek following:

adb logcat | grep ^./com\.foo*

android command-line android-logcat

No comments:

Post a Comment