DEV Community

Pulkit
Pulkit

Posted on • Edited on

4

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 :)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay