We are doing the project, debugging the program is generally debug or log, especially to see some JSON data and so on, like to play log to see, but in the project on the line log information must not be printed out, we can usually download some of the bad app, Connect to eclipse sometimes you can see some of the requested URL or the data returned, if you encounter some technical good people, yes, what do you understand, write a log class below, usually used in the project, is a tool class,
public class Loguitl {private static final Boolean Is_open = true;private static final String TAG = "Loguitl";p ublic Stati c void E (String msg) {LOG.E (TAG, msg);} public static void D (String msg) {LOG.E (TAG, msg);} public static void I (String msg) {LOG.E (TAG, msg);} public static void W (String msg) {LOG.E (TAG, msg);} public static void V (String msg) {LOG.E (TAG, MSG);}}
Correct handling of log information in Android project