public class MyLog { //新建一个标志位,调整标志位可以清除掉所有的Log日志, private static boolean isShowLog=true; public static void i( String tag,String t) { if(isShowLog){ Log.d(tag,t); } } }
Log日志简陋封装
最新推荐文章于 2022-04-13 20:48:04 发布
public class MyLog { //新建一个标志位,调整标志位可以清除掉所有的Log日志, private static boolean isShowLog=true; public static void i( String tag,String t) { if(isShowLog){ Log.d(tag,t); } } }