Android (Logcat, Monitors)

Source: Internet
Author: User

Just learn Android when you always like to output "Hello Word" such information to determine whether the implementation of a method, initially connected to the Android Studio console, breakpoints, where all have to look for a long time, now a little more than a few more familiar.

First to understand the next Logcat (log tool)

Use the Logcat command-line tool to print program log information and use the log command to import Android.util.Log that is, logcat functionality is provided by class Android.util.Log.

LOG.V () Usage level: Verbose, for printing details, output color black log.d () usage level: Debug, for print debug information, output color blue log.i () usage level: info, for printing advertisement information, output color green LOG.W () Use level: Warn, for printing warning messages, output color orange LOG.E () usage level: error, for printing errors, output color red log.wft use level: Assert, in the output of the log, the code at this time the execution path (call stack) print out, Common Language Unit Test.

Log level: Verbose<debug<info<warn<error<assert You can refer to the definition in the following class:

Monitors:

Android (Logcat, Monitors)

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.