Android has its own way of printing messages (called logs ) on a console known as LogCat .
If you want to print something in LogCat , you use the Log object and specify the category of the message.
Main settings:
- DEBUG:
Log.d - ERROR:
Log.e - INFO:
Log.i - VERBOSE:
Log.v - WARN:
Log.w
You print a message using the Log statement in your code, for example, in the following example:
Log.d("myTag", "This is my message");
In Android Studio, you can search for log messages labeled myTag to easily find a message in LogCat . You can also filter logs by category, such as "Debug" or "Warn."
RogueBaneling Jan 12 '15 at 4:32 2015-01-12 04:32
source share