Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Samsung Phones emit a lot of log messages on logcat

Logcat on Samsung phones is a real pain. They have just too much on the logcat of their own to make our developing life easy. Is there a way to reduce and filter OUT their message for noisy packages on logcat ?

I am not asking if there is a way to filter what I want to see, I need to filter OUT what I dont want to see.

like image 979
Siddharth Avatar asked Mar 04 '14 05:03

Siddharth


1 Answers

You can reject out what you don't want to see like this, add a new filter and put this in the "By tag name" field. You can of course know the tag you want to reject from the LogCat itself.

^(?!.*(UNWANTEDTAG)).*$

This is an example of one I use:

^(?!.*(SignalStrength|StatusBar|TelephonyManager|Wifi|SignalClusterView)).*$

I now don't see any messages from those tags

Edit 1: and this is a very long one from my library :D , you would barely see something there:

^(?!(WifiMulticast|WifiHW|MtpService|PushClient|Tethering|SensorService|WifiStateMachine|hawaii.hwcomposer|AnyDo|PowerManagerService|Monitor|IconMerger|InputMethodManager|SignalClusterView_dual|StatusBar.NetworkController_dual|LocationManagerService|Provider|SurfaceTextureClient|ImageLoader|dalvikvm|OpenGLRenderer|skia|AbsListView|MediaPlayer|AudioManager|VelocityTracker|Drv|Jpeg|CdpDrv|IspDrv|TpipeDrv|iio|ImgScaler|IMG_MMU|ResMgrDrv|JpgDecComp|JpgDecPipe|mHalJpgDec|PipeMgstatrDrv|mHalJpgParser|jdwp|libEGL|Zygote|Trace|InputEventReceiver|SpannableStringBuilder|IInputConnectionWrapper|MotionRecognitionManager|Choreographer|v_galz|SensorManager|Sensors|GC|LockPatternUtils|STATUSBAR*|SignalStrength|STATUSBAR-BatteryController|BatteryService|STATUSBAR-PhoneStatusBar|WifiP2pStateTracker|Watchdog|AlarmManager|BatteryStatsImpl|STATUSBAR-Clock)).*$
like image 72
MSaudi Avatar answered Oct 29 '22 23:10

MSaudi