Phone Processes Flooding LogCat Output - How To Eliminate These Messages?

I know how to filter messages in LogCat, so that’s not what I am asking for.

The problem is that some phones are “noisier” than others and flood the LogCat buffer until an error is triggered, which causes it to refuse new messages.

This problem does not occur on the Nexus One, but it does happen, for example, with the Samsung Continuum i400.

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

+8
android android-logcat logcat
source share
5 answers

Sometimes "Clear Log" works. And sometimes this is not so.

If "Clear Log" does not help, there is no need to restart Eclipse. All you have to do is show the Devices view in the DDMS perspective and the LogCat message will magically start appearing again.

You can then close the Devices view (if you do not need it).

+2
source share

It is impossible to prevent any application of the publication of any logarithms, as far as I know. All you can do is clear the log before capturing and then filter out what you don't want to see. For example:

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

Hope this helps.

+3
source share

As @Emmanuel pointed out, and, as I mentioned in the comments, I don’t believe that there is a way to stop other applications from publishing journal messages. You can filter them, but you cannot stop them completely.

The simplest solution that I found when I encounter this problem is to simply click the Clear Log button in Eclipse.

Clear Log Button in Eclipse

This should clear the buffer (at least until noisy applications close it again). You can click the button at any time, so I find it most useful to clear the log before performing the action that I want to debug.

I guess another option is to completely kill the process. If a noisy application is not critical to the application you are trying to debug, you can simply end the process.

+1
source share

The best thing in this case would be to use filter functionality to display only the logs from your application. You can filter by PID or by application name.

Picture

Click the green plus button to create a filter for your application.

0
source share

You can restart the device to stop the processes from flooding the logarithm. This is the solution I use every time.

0
source share

All Articles