views:

803

answers:

2

The question is in the title.

+1  A: 
Log.v("blah", "blah blah");

You need to add the android Log view in eclipse to see them. There are also other methods depending on the severity of the message (error, verbose, warning, etc..).

Alex
+4  A: 

Rather than trying to output to the console Log will output to LogCat which you can find in Eclipse by going to: Window->Show View->Other…->Android->LogCat

Have a look at the reference for Log at http://d.android.com/reference/android/util/Log.html

The benefits of using LogCat are that you can print different colours depending on your Log type, ie: Log.d prints blue, Log.e prints orange. Also you can filter Log tags which is really useful when you just want to see your apps Logs and keep the other system stuff seperate.

disretrospect