2

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?

4

1 回答 1

1

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
于 2010-07-12T15:31:09.107 回答