DEV Community

Pulkit
Pulkit

Posted on • Edited on

Samsung LogCat Fix

Are you tired of the cluttered Logcat?
Well I got you, I own a Samsung Note 9, and according to Samsung experts they add all kind of randoms in the Logcat window in Android Studio.

Basically I am inspired from this blog

https://medium.com/@vlonjatgashi/how-to-filter-out-android-logcat-logs-66945a4a0e0a

Just create a new log tag as this

^(?!.*(AbsListView|ActivityThread|gies.*|ScrollView|OpenGLRenderer|InputTransport|InputMethodManager|InputMethodManager|zygote64|dalvik|ViewRootImpl*)).*$
Enter fullscreen mode Exit fullscreen mode

This is for the emulator giving bunch of random Logs

^(?!.*(libEGL|libc|EGL_emulation|eglCodecCommon|RenderThread|HostConnection|Gralloc3|OpenGLRenderer|AbsListView|ActivityThread|gies.*|ScrollView|OpenGLRenderer|InputTransport|InputMethodManager|InputMethodManager|zygote64|dalvik|ViewRootImpl*)).*$
Enter fullscreen mode Exit fullscreen mode

and package name as app package name.

Enjoy clutter free life ;)

Top comments (1)

Collapse
 
krisj profile image
Krzysztof Jackowski

Simple and useful tip! Thanks :)