通过应用程序过滤LogCat中在ACRA和不使用TAG [英] Filtering LogCat in ACRA by application and not using TAG

查看:174
本文介绍了通过应用程序过滤LogCat中在ACRA和不使用TAG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用ACRA捕捉误差,提高我的应用程序。我想在logcat的过滤生成的所有日志,因为我的应用程序运行其中不仅包括那些我的应用程序生成,​​而且还那些由应用程序(如GOOGLEPLAY)使用的库中产生。

I am currently using ACRA for capturing errors and improving my application. I would like to filter in Logcat all logs generated due to my application running which includes not only those that my app generates, but also those that are generated by libraries used by app (like GooglePlay).

通常我所看到的建议是按标签过滤,但不会让我看到,我没有记录标记(如,例如,ACRA ...)

Usually what I have seen suggested is filtering by TAG, but that will not allow me to see logs that I have not tagged (like, for instance, ACRA... )

有是Eclipse的一个解决方案,我可以过滤两种使用标签也受到应用程序名称和/或它的进程ID。这就是我想做些什么,以我的应用程序过滤器名称发送到ACRA的logcat的输出。

There is a solution in eclipse where I can filter both using TAGs but also by Application name and/or its process ID. That's what I would like to do, filter by my application name the logcat output sent to ACRA.

我想在logcat中使用命令复制下面的选项我在Eclipse中选择:

I would like to use a command in logcat to reproduce the following option I select in eclipse:

最后的问题是在logcat的水平。可以通过应用程序而不是按标签使用过滤器在亚行的水平来筛选的logcat

Finally the question is at logcat level. Is possible to filter logcat at adb level using a filter by application and not by TAG

是要对所有的应用程序日志,单个标签的唯一选择?周围的另一种方式我是过滤的所有标签是由XXXX开始,但我还没有发现,不使用*。

Is the only option to have a single TAG for all the application Logs? Another way around I have is to filter "all TAG starting by xxxx", but I have not found any example in google, not using "*".

使用Linux命令(如grep)是不是可行,我已经测试它作为信息被传递ACRA的方式。任何解决方案

Any solution using Linux shell (like grep) is not workable, I already tested it as the way the information is passed by ACRA.

推荐答案

Trebia,

您请求的棘手的部分是亚行logcat吐出PID。我所知道的应用程序名称过滤的唯一方法是编写一个脚本通过PS查询操作系统来查找PID。我不知道有什么方法可以做到这一点日食带内进行编辑logcat的插件自己。

The tricky part of your request is "adb logcat" spits out PID. The only way I know of to filter by application name is to write a script to query the OS via "ps" to look up the PID. I am not aware of any way to do that within eclipse with out editing the logcat plugin yourself.

如果您使用的是Mac,你愿意做过滤日食,你应该尝试LogRabbit之外。它可以通过应用程序的名称过滤或几乎任何其他人的事情,你需要通过过滤。除了丰富的过滤器的创造者已保存的过滤器只需一个点击即可进行实时过滤。

If you are using a Mac and you are willing to do the filter outside of eclipse you should try LogRabbit. It can filter by application name or just about any thing else you would need to filter by. In addition to a rich filter creator your saved filters are just one click away for real-time filtering.

您可以在这里找到更多的信息: http://lograbbit.com/

You can find more information here: http://lograbbit.com/

全面披露我LogRabbit的创造者。

Full disclosure I am the creator of LogRabbit.

这篇关于通过应用程序过滤LogCat中在ACRA和不使用TAG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆