Does Eclipse Logcat for Android display Log messages?

Asked

Viewed 602 times

2

public void ImprimeLog(){
        Log.i("Funcionando","");
        Log.e("Funcionando","");
        Log.v("Funcionando","");
        Log.w("Funcionando","");
        Log.d("Funcionando","");
    }

In Android Studio works, but Eclipse is not working, this is normal?

  • You are not confusing Eclipse Console with Tomcat log?

  • no, I don’t even have Tomcat installed, I’m talking about the logcat of Android same.

2 answers

1

To circumvent this "intermittence" use as follows to print your logs via LogCat:

System.out.println("Printa logCat - teste 1""+vendedor);

System.out.println("Printa logCat - teste 2");

System.out.println("Printa logCat - teste 3"+usuarios.toString());

Exit :

07-01 09:57:37.429: i/system.out(22125): Printa logCat - test 1 Seller [identifier=null, name=16235676883, password=0]

07-01> 09:57:37.429: I/System.out(22125): Printa logCat - test 2

07-01> 09:57:37.429: I/System.out(22125): Printa logCat - test 3 Seller> [identifier=null, name=16235676883, password=0, Update=Mon Jun 29> 00:00:00 BRT 2015]

The interesting thing about using the sysout How Out Is You Can Print So Much Objetos as String and may also use toString();

1

You can find in Eclipse in:

Window -> Show View -> Other… -> Android -> LogCat

Make sure you’re not with any FILTER log in Eclipse.

Alternative

If the LogCat is empty, the emulador is not focused on the window. Go to the DDMS and try to click emulator in the list of devices (Devices) at the top left of the screen.

The same happens to your phone. You just need to click on the name of your phone so that messages from Logcat come.

Update

Due to the intermittence (yes time, no time) of the Eclipse to correctly display the Logcat reported by @daniel12345smith and also to the report of @Wellingtonavelino, the problem can be considered a BUG at ATD or Eclipse, making the response aimless.

  • Thanks, but I’ve done all this and still nothing. Sometimes appears, sometimes not, in Android Studio appeared all the logs and errors normally.

  • If there is intermittence between appearing and not appearing, the Eclipse may be bugged anyway.

  • 1

    @Felipedinho, I go through this straight I believe it is an ADT bug

  • @Wellingtonavelino, ah, so that’s it!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.