Meaning and usage in log

Source: Internet
Author: User

1. the debugging color of log. V is black, and any message will be output. Here v stands for verbose, which is usually used as log. V ("","");

2. The output color of log. D is blue and only the meaning of DEBUG debugging is output. However, it outputs the upper-layer information, which can be selected through the logcat tag of ddms.

3. The output of log. I is green. Generally, it indicates message information. It does not output information of log. V and log. D, but displays information of I, W, and E.

4. log. W indicates orange. It can be seen as a warning of warning. Generally, we need to optimize the android code and select it to output log. E.

5. If log. e is red, you can think of error errors. Here, only red error messages are displayed. We need to carefully analyze these errors and view stack information.

Log. V ("versioncode", "123"); after the log tag is configured, you can filter the desired content in logcat.

 

 

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.