views:

34

answers:

1

Is there any way to setup a logcat filter by name? I realize they have the filter by log tag, but my app may have various different tags. I can use the filter by pid, but of course everytime i recompile and redeploy this pid changes. I'd like to be able to fitler it by com.mycompany.appname or something along those lines. is this even possible?

+1  A: 

I do this by adding a prefix to my log tags. For ejample:

  • NameOfMyApp-Home
  • NameOfMyApp-Settings

and then I use grep with:

adb shell logcat | grep NameOfMyApp
Macarse