开发者

android DDMS logcat filter by name

开发者 https://www.devze.com 2023-01-07 07:32 出处:网络
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 cour

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

精彩评论

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