我有一个华为的U8950手机,并使用它的安卓开发。问题在于,华为的工作人员保留了调试日志,而我的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
...这些消息如此之多(数百甚至数千),使EclipseH挂(我认为是因为解析和着色),所以我不再使用它,并手动使用adb logcat。然而,在那里,我也必须处理他们,看到和滚动他们。
有什么办法让他们停用吗?(过滤它们的软件解决方案不好,因为传输和处理的开销仍然存在。)
发布于 2014-03-17 15:22:40
如果你安装了百事箱,你就能做到
logcat | busybox grep -v HUAWEI_DEBUG在亚行壳牌或ssh。有些构建有busybox,但是您可能需要安装它。谢天谢地,有大量的应用程序拖着它前进--大多数终端都会这样做。
https://stackoverflow.com/questions/22455317
复制相似问题