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*)).*$
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*)).*$
and package name as app package name.
Enjoy clutter free life ;)
Top comments (1)
Simple and useful tip! Thanks :)