Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove noisy logs with Android Device Monitor

I have the following three errors flooding up logcast incessantly:

E/eglCodecCommon: **** ERROR unknown type 0x0 (glSizeof,73)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000bd

My goal is to remove these noisy logs from the console logs in Android Studio.

I go to tools > Android > Android Device Monitor. Under Logcat tab, I select + icon. I enter Filter name "Noisy egl". I enter Log tab eglCodecCommon because that is what Logcat says the tag name is. I save it.

But as soon as my app launches Facebook Login on the Emulator, those errors reappear. How can I filter them out?

like image 727
Daniel Viglione Avatar asked Feb 02 '17 19:02

Daniel Viglione


3 Answers

Under 'logcat' tab at bottom of android studio, make sure you choose correct options for emulator, package and log level. enter image description here In botton right corner, choose edit filter configuration and add following configs:

Logtag:

^(?!(eglCodecCommon|GnssLocationProvider|system_process|audio_hw_generic|tagToExclude))

Package name:

^(?!(com.google.android.gms.persistent|android.os.Debug|packageToExclude))

Or you can just add 'com.yourPackageName' under package name. Make sure that 'regex' option is selected for both.

like image 85
Rujoota Shah Avatar answered Oct 31 '22 21:10

Rujoota Shah


Answer from Andrej Jurkin does not work (anymore?) in Android Studio 3.6.

Here is the updated Regex:

^((?!eglCodecCommon|anyOtherTags|YouWantToExclude).)*$

Enter this in the filter and make sure that "Regex" is checked.

like image 43
Cédric Avatar answered Oct 31 '22 19:10

Cédric


In the top-right corner of your log tab, select "Edit filter configuration" and use this. Make sure regex check box is checked. Good luck.

^(?!(eglCodecCommon|anyOtherTags|YouWantToExclude))
like image 12
Andrej Jurkin Avatar answered Oct 31 '22 20:10

Andrej Jurkin