zoukankan      html  css  js  c++  java
  • Easy Tag Write(3.2)

    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);
            }
        }
    }
  • 相关阅读:
    vue element-ui 动态上传
    vue element ui 导航刷新 is-active
    算法图解笔记
    简单操作的一些小技巧
    大话数据结构 -07-1 图的定义、抽象数据类型与存储结构
    ELO kernels 记录
    [2] day 02
    [1] first day
    大话数据结构 -04-3 队列
    大话数据结构 -04-2 栈的应用-递归
  • 原文地址:https://www.cnblogs.com/jyycnblogs/p/6035305.html
Copyright © 2011-2022 走看看