Android memos, for your own use, do not laugh: (1) debugging

Source: Internet
Author: User

The ddms tab is integrated with logcat, which can be printed at runtime.ProgramRunning information. (This is the same as the C # debugging console)

You can use the java. util. Log class in the program for tracking. This class contains five methods:Log. V log. D log. I log. W log. E.

 

The differences are as follows:

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. Only debug debugging is output.

3. The output of log. I is green and generally prompts the message information.

4. log. W indicates orange, which can be seen as a warning of warning.

5. If log. e is red, an error occurs.

Related Article

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.