Suppressing LogCat - How To Get Rid Of All The Unwanted Inner Crap?

I would like to know how to filter logcat messages that have nothing to do with my application. There are so many pitfalls in there that it is practically useless because it just keeps on scrolling due to all the internal stuff.

I want to delete messages like:

1224-1616/system_process E/WindowState﹕ getStack: Window{344506b0 u0 Loggin in...} couldn't find taskId=38 Callers=com.android.server.wm.WindowState.getDisplayContent:762 com.android.server.wm.WindowState.getDisplayId:767 com.android.server.wm.InputMonitor.updateInputWindowsLw:288 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:9936
1224-1475/system_process W/ActivityManager﹕ Unbind failed: could not find connection for android.os.BinderProxy@ae6f48b
1224-1384/system_process I/ActivityManager﹕ START u0 {act=android.intent.action.VIEW cmp=com.android.packageinstaller/.UninstallAppProgress (has extras)} from uid 10037 on display 0
...
1705-1774/com.google.android.gms I/GoogleHttpClient﹕ Falling back to old SSLCertificateSocketFactory
1705-1705/com.google.android.gms I/ConfigFetchService﹕ fetch service done; releasing wakelock

      

I only want my prints, Exceptions thrown by my application and nothing else.

+4


source to share


1 answer


Assuming you are using Android Studio or Intelij, on the right side of the Logcat toolbar, from the dropdown, select Show only selected application. Then, from the drop-down list to the left, select the application process in which you want to see the logs.

The filter can be used to remove logs from the Dalvik VM. In the dropdown list to the right of Logcat, select Edit Filter Configuration. In the "Tag Tag (regex)" field ^(?!(dalvikvm))

. In Package Name, enter the package of the application to run.



enter image description here

+6


source







All Articles