According to the Android Developers , Log
is a logging class that you can utilize in your code to print out messages to the LogCat.
To write log statements, we use the android.util.Log
class
There are different Log methods. These are listed below:
Each method having individual functionality, they are described as:
Log.d() – Send a DEBUG log message and log the exception.
Log.e() – Send an ERROR log message. Use this tag in places like inside a catch statement.
Log.i() – Use this to post useful information to the log. For example: that you have successfully connected to a server. Basically use it to report successes.
Log.w() – Anything that happens that is unusual or suspicious, but not necessarily an error.
Log.v() – Printouts of state at different intervals, or upon any events occurring which my component processes. Also possibly very detailed printouts of the payloads of messages/events that my component receives or sends.
—————————————————————————————————————————–
The priority is one of the following character values, ordered from lowest to highest priority:
V
— Verbose (lowest priority)
D
— Debug
I
— Info
W
— Warning
E
— Error
F
— Fatal
S
— Silent (highest priority, on which nothing is ever printed)