Does Eclipse LogCat for Android display Log messages?

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

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

    
asked by anonymous 30.06.2015 / 21:51

2 answers

1

You can find in Eclipse in:

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

Make sure you do not have any FILTER logging in Eclipse.

Alternative

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

The same goes for your cell phone. You just need to click on the name of your cell phone for LogCat messages to come.

Update

Due to the intermittent (time-out, time-out) of Eclipse correctly displaying the LogCat reported by @ daniel12345smith and also the @WellingtonAvelino report, the problem can be considered a BUG in the ATD or Eclipse, making the answer aimless.

    
30.06.2015 / 21:58
1

To work around this "blinking" use the following 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());

Output:

  

07-01 09: 57: 37,429: I / System.out (22125): Printa logCat - Test 1   Vendor [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 sysout as output is that you can print both Objetos and String and you can also use toString();

    
01.07.2015 / 15:02