質問

I have a Huawei U8950 phone and use it for Android Development. 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:

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. 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

logcat | busybox grep -v HUAWEI_DEBUG

in adb shell or ssh. Some builds have busybox ,but you will probably need to install it. Thankfully there are tons of apps that drag it along - most terminals do.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top