View RSS Feed

Android Development

Logging Android Application Information

Rate this Entry
by , 02-11-2012 at 12:58 PM (740 Views)
Android has a powerful logging utility class that is called “android.util.Log”. Different log messages are categorized in different groups with errors being the most severe. Following table list some popular methods of the Log class.

Name:  1.JPG
Views: 512
Size:  19.0 KB

Android Log Table


First parameter passed to each Log method is a tag and its data type is String. The most common practice is to define a global static string that represents the complete application or some particular activity within application like log filters are created to limit the log output.

For example, following TAG string can be defined.

Java Code:
private static final String TAG = "myApp";

Submit "Logging Android Application Information" to Facebook Submit "Logging Android Application Information" to Digg Submit "Logging Android Application Information" to del.icio.us Submit "Logging Android Application Information" to StumbleUpon Submit "Logging Android Application Information" to Google

Categories
Android Log

Comments