如何筛选出在Eclipse

如何筛选出在Eclipse

本文介绍了如何筛选出在Eclipse LogCat中观众标记名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,垃圾邮件的LogCat中,我想删除其logcat的条目,以便有一个输出可读性更强。

I have an Android application that "spams" the LogCat and I would like to remove its logcat entries in order to have an output more readable.

是否有可能有一个过滤器,去除LogCat中输入特定的标签名称?或者说是卓有成效的搜索模式?

Is it possible to have a filter that remove the LogCat entries for a specific tag name? Or a search pattern that does the trick?

推荐答案

是的。创建一个过滤器,其中通过日志标签字段是

Yes. Create a filter where the "By log tag" field is

^(?!.*(MYTAG)).*$

其中, MyTag的是你不希望看到的标签。我不是一个正则表达式专家(一个regexpert?;-)),所以有可能是一个简单的方法来做到这一点否定,但我只是想这和它的作品。

where MYTAG is the tag you don't want to see. I am not a regexp expert (a "regexpert"? ;-) ) so there may be a simpler way to do that negation, but I just tried that and it works.

您可以玩的只是登录猫邮件区域上方在该领域的过滤器,输入过滤字符串出现,像这样:

You can play around with the filter in the field just above the Log Cat message area, by entering filter strings there, like this:

tag:^(?!.*(DeskClock|dalvik|wpa)).*$

它会显示所有消息的除了的标签DeskClock,Dalvik的,和WPA。

which will show all messages except tags "DeskClock", "dalvik", and "wpa".

这篇关于如何筛选出在Eclipse LogCat中观众标记名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 00:37