[英]How to get rid of HUAWEI_DEBUG logs?
I have a Huawei U8950 phone and use it for Android Development. 我有一部华为U8950手机,并将其用于Android开发。 The problem is that the guys at Huawei has left their debug logs on and my logcat output is always flooded with hundreds of log messages like this: 问题是,华为公司的人员已经打开了调试日志,而我的logcat输出始终充满着数百条这样的日志消息:
E/OpenGLRenderer(10525): HUAWEI_DEBUG: glyph's Height = 21, Width = 13, current total allocated size out of MAX(1024) = 17
E/OpenGLRenderer(10525): HUAWEI_DEBUG: glyph's Height = 21, Width = 15, current total allocated size out of MAX(1024) = 16
E/OpenGLRenderer(10525): HUAWEI_DEBUG: glyph's Height = 21, Width = 15, current total allocated size out of MAX(1024) = 32
E/OpenGLRenderer(10525): HUAWEI_DEBUG: glyph's Height = 16, Width = 13, current total allocated size out of MAX(1024) = 16
...
These message are so so many (hundreds or even thousands) and make Eclipse hang (I think because of parsing and coloring) that I don't use it anymore and use adb logcat
manually. 这些消息是如此之多(数百甚至数千)并使Eclipse挂起(我认为是由于解析和着色),以至于我不再使用它并手动使用adb logcat
。 However in there too I have to deal with them and see and scroll them. 但是在那儿我也必须处理它们,然后查看并滚动它们。
Is there any way to disable them? 有什么办法可以禁用它们? (Software solutions for filtering them is not good, because the overhead of transferring and processing still remains) (用于过滤它们的软件解决方案不好,因为仍然存在传输和处理的开销)
If you install busybox you could do 如果您安装busybox,则可以
logcat | busybox grep -v HUAWEI_DEBUG
in adb shell or ssh. 在adb shell或ssh中。 Some builds have busybox ,but you will probably need to install it. 有些版本有busybox,但您可能需要安装它。 Thankfully there are tons of apps that drag it along - most terminals do. 值得庆幸的是,有大量的应用程序可以将其拖到其他大多数终端上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.