android DDMS logcat 按名称过滤
有没有办法按名称设置 logcat 过滤器?我意识到他们有按日志标签过滤器,但我的应用程序可能有各种不同的标签。我可以通过 pid 使用过滤器,但是当然每次我重新编译和重新部署这个 pid 都会发生变化。我希望能够通过 com.mycompany.appname 或类似的东西来调整它。这可能吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过向日志标签添加前缀来做到这一点。例如:
,然后我使用
grep
:I do this by adding a prefix to my log tags. For ejample:
and then I use
grep
with: