Logging Android Application Information
by, 02-11-2012 at 12:58 PM (850 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.
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";