开发者

android DDMS logcat filter by name

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜