Thursday, May 22, 2014

Filter android logcat by package name on command line

Recently, I wrote a shell script for filtering android logcat log by package name, which is a shame that it's not a default option on logcat.

The script can be downloaded here.

Set first argument as the package name you want to match, for example
net.kevxu.example
also
net.kevxu
will match any application that starts with net.kevxu

The rest of arguments will be passed to adb.

No comments:

Post a Comment