Log日志简陋封装

来源:互联网 发布:wto贸易统计数据库 编辑:程序博客网 时间:2024/06/12 18:57
public  class MyLog  {    //新建一个标志位,调整标志位可以清除掉所有的Log日志, private static boolean isShowLog=true;    public static void i( String tag,String t) {        if(isShowLog){            Log.d(tag,t);        }    }}
1 0
原创粉丝点击