Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phone's Processes Flooding LogCat Output -- How To Eliminate those Messages?

I know how to filter out messages in LogCat, so that's not what I am asking about.

The problem is that certain phones are "noisier" than others and flood the LogCat buffer to the point of triggering a bug that makes it discard newer messages.

This problem doesn't happen on the Nexus One, but it does happen with the Samsung Continuum i400, for example.

Is there a way to tell Android or LogCat to completely discard (i.e. not filter) messages from certain processes?

like image 911
uTubeFan Avatar asked Sep 23 '11 19:09

uTubeFan


1 Answers

There's no way to prevent any application of posting anything to logcat, as far as I know. All you can do is clear the log before capturing, and then filter out things you don't want to see. For example:

adb logcat -c 
adb logcat BadProcessName:S MyProcessName:V > log.txt
CTRL-C

I hope this helps.

like image 187
Emmanuel Avatar answered Oct 01 '22 06:10

Emmanuel