Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse android logcat showing everything

Sometimes when I'm working with my android projects, and hook up my phone, the logcat in Eclipse starts to report EVERYTHING that's happening on my phone, not just the stuff relative to the project I'm working on. It only does this sometimes though.

How do I stop it from showing everything and just show the things relative to my project?

EDIT: I forgot to say i already know about filters, sorry. I was just wondering why sometimes eclipses logcat shows everything my phone is doing, while other times it only shows what's relative to the project i'm currently working with when running it on the phone.

like image 590
iedoc Avatar asked Jul 25 '12 14:07

iedoc


People also ask

Why is my Logcat not showing anything in Android?

Solution 1: Restarting your Android StudioIn your IDE Go to File > Invalidate Caches and Restart > Invalidate and Restart. This Solution will clear all the caches of Android studio IDE and restart it automatically, By the method, there are 80% change that Logcat will start work as before.

How do I view Logcat in eclipse?

To open Logcat Click View > Tool Windows > Logcat (Alt + 6 or from the toolbar window).

How do I stop Logcat from clearing?

Prevent clearing the log when the app crashes By default when the app got crashed the logcat clear's in the android studio. To prevent this, click the right end chooser(Filter Configuration chooser) in the logcat tab then select Edit Filter Configuration option and enter current app name and package name.


1 Answers

I forgot to say i already know about filters, sorry.

Then it is because you have a filter selected and/or eclipse has encountered an error and is just not showing everything it should be.


First Answer

Next to your logcat window should be a Filter window. Create a filter there. Then select the filter by clicking the filter you have made or was put there automatically by eclipse.

You can filter on several things.

Most people will create a static string in their Main Activity/Service containing the application name. Use this static string as your TAG for all of your Logs. Then you can filter on this string you put for the static string.

Also, right clicking in the logcat window will bring up a filter dialog.

like image 167
prolink007 Avatar answered Oct 16 '22 09:10

prolink007