Thursday, May 6, 2010

Android - Writing to the log file

Very simple.

Add a log such as this:
Log.i("Main","Starting the IBM Cloudroid application");

This first string is the "tag" you want to give your log message. And the second string is your message.

To view the log, start you application, in Eclipse is switch to the DDMS perspective








to see the LogCat view:



No comments: