public class MyLog { //新建一个标志位,调整标志位可以清除掉所有的Log日志, private static boolean isShowLog=true; public static void i( String tag,String t) { if(isShowLog){ Log.d(tag,t); } } }
public class MyLog { //新建一个标志位,调整标志位可以清除掉所有的Log日志, private static boolean isShowLog=true; public static void i( String tag,String t) { if(isShowLog){ Log.d(tag,t); } } }