简体   繁体   English

如何清除HUAWEI_DEBUG日志?

[英]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.

相关问题 试图摆脱持久日志警告调试在华为登高P6 - trying to get rid of a persistent log warning debugging on Huawei Ascend P6 如何以编程方式获取华为应用市场上应用程序的版本? - How to programmatically get the version of an app on Huawei AppGallery? 如何调试 ANR 崩溃日志 - How to debug ANR crash logs 华为Android Logcat没有显示日志 - Huawei Android Logcat not showing logs 如何摆脱仅在调试模式下在Android应用程序中遇到的ClassNotFoundException? - How to get rid of this ClassNotFoundException that is encountered in my Android app only in debug mode? 如何摆脱这个 NumberFormatException? - How to get rid of this NumberFormatException? 如何在应用程序中读取FirebaseDatabase DEBUG日志? - How to read FirebaseDatabase DEBUG logs in app? 如何在Android的JNI中实现调试日志 - How to implement debug logs in Android's JNI 如何获取华为 Api 的访问令牌以向设备发送推送? - How to get access token for Huawei Api for sending push to device? 如何获取通过Airwatch MDM解决方案分发的应用程序的调试日志 - how to get debug logs of application which is distributed though Airwatch MDM solution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM