Easy Debugging in Android 4 using LogCat

LogCat  tool is responsible for emit log messages using android.util.Log .Even though there is System.out.println and the corresponding output is displayed in LogCat window we have to use android.util.log class. This class mainly focus on Famililiarinformational ,warnigs and error methods.

Log.v("string TAG", "This is my sample log");
It’s best to use the appropriate call level for the message  logs that we needed, and note that logging uses memory and takes CPU resources. Benefit of LogCat is that we can view log messages while
runningour application in the emulator, 

test Web Developer

No comments:

Post a comment

Related Posts Plugin for WordPress, Blogger...