Android Log (i)

Source: Internet
Author: User

(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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.