Android.util.Log Common methods have the following 5 A: log.v (), LOG.D (), LOG.I (), LOG.W (), LOG.E () . Follow the log level from high to low for ERROR, WARN, INFO, DEBUG, VERBOSE. As for the meaning of the log level itself , I believe it used. Apache Log4j,apache logfactory everybody knows. , no longer described here .
1. The following is an introduction to the various log level outputs :
1 , LOG.V the output color is black, the output is greater than or equal to VERBOSE Log-level information
2 , LOG.D the output color is blue and the output is greater than or equal to DEBUG Log-level information
3 , log.i the output is green and the output is greater than or equal to INFO Log-level information
4 , LOG.W the output is orange , output greater than or equal to WARN Log-level information
5 , LOG.E the output is red, only the output ERROR Log-level information .
2. How to turn on Android LogCat after ADT has been installed Window
in ecplise , click window->show view->other ...
Enter LogCat in the pop-up dialog and select Android under LogCat and click OK
LOG.V ("A", "AA");
LOG.D ("b", "BB");
LOG.I ("C", "CC");
LOG.W ("D", "DD");
LOG.E ("E", "ee");