首页 > 其他 > 详细

Easy Tag Write(3.2)

时间:2016-11-06 16:24:23      阅读:152      评论:0      收藏:0      [点我收藏+]
package skyseraph.android.util;

/**
 * @Title : LogUtil.java
 * @Package : tcl.nfc.phone.util
 * @ClassName : LogUtil
 * @Description : 通用调试类
 * @author : skyseraph00@163.com
 * @date : 2013-5-16 上午9:22:43
 * @version : V1.2
 */
public class LogUtil {

    public static void v(String tag, String msg) {
        if (MyConstant.isVerbose) {
            android.util.Log.v(tag, msg);
        }
    }

    public static void v(String tag, String msg, Throwable t) {
        if (MyConstant.isVerbose) {
            android.util.Log.v(tag, msg, t);
        }
    }

    public static void d(String tag, String msg) {
        if (MyConstant.isDebug) {
            android.util.Log.d(tag, msg);
        }
    }

    public static void d(String tag, String msg, Throwable t) {
        if (MyConstant.isDebug) {
            android.util.Log.d(tag, msg, t);
        }
    }

    public static void i(String tag, String msg) {
        if (MyConstant.isInformation) {
            android.util.Log.i(tag, msg);
        }
    }

    public static void i(String tag, String msg, Throwable t) {
        if (MyConstant.isInformation) {
            android.util.Log.i(tag, msg, t);
        }
    }

    public static void w(String tag, String msg) {
        if (MyConstant.isWarning) {
            android.util.Log.w(tag, msg);
        }
    }

    public static void w(String tag, String msg, Throwable t) {
        if (MyConstant.isWarning) {
            android.util.Log.w(tag, msg, t);
        }
    }

    public static void e(String tag, String msg) {
        if (MyConstant.isError) {
            android.util.Log.e(tag, msg);
        }
    }

    public static void e(String tag, String msg, Throwable t) {
        if (MyConstant.isError) {
            android.util.Log.e(tag, msg, t);
        }
    }
}

 

Easy Tag Write(3.2)

原文:http://www.cnblogs.com/jyycnblogs/p/6035305.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!