In Android, to debug the application by printing some data and to print all kinds of data in console, we use Log class methods
There are different types of log levels in Android as follows
Verbose – Used to log all types of information. It can be done as follows.
Ex: Log.v(TAG, “Any type of information”);
Debug – Used to log data related to application debugging as follows
Ex: Log.d(TAG, “Any debug related date”);
Information – Used to log some regular application information as follows
Ex: Log.i(TAG, “Any information”);
Warning – Used to log information that may or may not generate some wrong output as follows
Ex: Log.w(TAG, “Warning information”);
Error – Used to log all errors. The main usage of this is in the cache block.
Ex: Log.e(TAG, “Error information”);