如何隐藏,删除,过滤Eclipse中的日志中的日志for Android [英] How to hide, remove, filter logs in the logcat in Eclipse for Android

查看:161
本文介绍了如何隐藏,删除,过滤Eclipse中的日志中的日志for Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中为Android隐藏日志(可能是因为主题的关键字)找到正确的帖子,我遇到了一些困难,所以我创建了一个。这是我发现的帖子(看看ZoFreX的答案,最简单的)

I had some difficulties finding the right post for hiding logs in Eclipse for Android (maybe because of the keywords of the subject), that's why I created one. Here is the post I found : (look at ZoFreX's answer, the simplest)

如何通过使用Android adb logcat的TAG名称排除特定邮件?

推荐答案

我发现最适合我的过滤器是:

The filter that I have found to work the best for me is:

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

我的经验。我有线程运行无限循环创建大量的垃圾邮件日志不相关联和标签,所以我只是把部分日志消息放在 text_to_filter_out_here 部分,没有更多的日志会出现。

This works for anything from my experience. I have threads that run infinite loops creating a ton of spam logs that aren't associated with and tags so I just put in part of the log message in the text_to_filter_out_here part and no more logs appear.

也可能重复这两个:

如何阻止我的垃圾邮件垃圾邮件?

如何在Eclipse LogCat查看器中过滤掉一个标记名

这篇关于如何隐藏,删除,过滤Eclipse中的日志中的日志for Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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