Import android. util. log;/*** logging module **/public class logmanager {// lock, whether to disable log output public static Boolean logoff = hycsconst. logoff; // whether to disable verbose output public static Boolean logoff_verbose = hycsconst. logoff_verbose; // whether to disable the debug output public static Boolean logoff_debug = hycsconst. logoff_debug;/***** 5 log type ********* // The debug log type */public static final int DEBUG = 111; /** Error Log Type */public static final int error = 112;/** information Log Type */public static final int info = 113;/** detailed information Log Type */public static final int verbose = 114; /** warning debug log type */public static final int warn = 115;/** display, print the log */public static void logshow (string tag, string message, int style) {If (! Logoff) {Switch (style) {Case Debug: If (! Logoff_debug) {log. D (TAG, message) ;}break; Case Error: log. E (TAG, message); break; case info: log. I (TAG, message); break; Case verbose: If (! Logoff_verbose) {log. V (TAG, message) ;}break; Case warn: log. W (TAG, message); break ;}}}}