(1) log level
Logs are also divided into debug,info,warn, anderror levels . Usage Direct Call Log class, such as
Private Static Final String TAG = "Mainactivity";
LOG.D (TAG,"Debug");
LOG.I (TAG,"info");
LOG.W (TAG,"warn");
LOG.E (TAG,"error");
(2) Log filtering
Click on "New" here
Fill in filter criteria, filter names, and filter log labels
After running the program, click the filter name mainactivity on the left side of the Log menu bar to see the logs to be filtered .
(3) Log view
You can use Ctrl + A to copy all of the logs Ctrl + C, and then copy them to your UE for easy viewing, and then copy the above filtered log with the following details .
03-09 09:18:18.728:d/mainactivity (17700): Debug
03-09 09:18:18.728:i/mainactivity (17700): info
03-09 09:18:18.728:w/mainactivity (17700): Warn
03-09 09:18:18.728:e/mainactivity (17700): Error
Android Log (i)