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 开发者_StackOverflow社区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?
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
精彩评论