Easy Tag Write(3.2)

package skyseraph.android.util;

/**
 * @Title : LogUtil.java
 * @Package : tcl.nfc.phone.util
 * @ClassName : LogUtil
 * @Description : 通用调试类
 * @author : [email protected]
 * @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);
        }
    }
}
时间: 2024-08-06 15:18:16

Easy Tag Write(3.2)的相关文章

Easy Tag Write(2)

1 package skyseraph.android.util.nfc; 2 3 import com.google.common.collect.BiMap; 4 import com.google.common.collect.ImmutableBiMap; 5 6 import skyseraph.android.util.LogUtil; 7 import skyseraph.android.util.MyConstant; 8 9 import android.annotation.

Easy Tag Write(3.3)

package skyseraph.android.util; /** * @Title : Constant.java * @Package : tcl.nfc.tv.util * @ClassName : Constant * @Description : TODO * @author : [email protected] * @date : 2013-5-20 上午9:31:10 * @version : V1.0 */ public class MyConstant { public

Easy Tag Write(3.1)

1 package skyseraph.android.util; 2 3 import skyseraph.easytagwrite.R; 4 import android.app.Dialog; 5 import android.content.Context; 6 import android.content.DialogInterface; 7 import android.graphics.drawable.Drawable; 8 import android.view.LayoutI

[LeetCode] 257. Binary Tree Paths_ Easy tag: DFS

Given a binary tree, return all root-to-leaf paths. Note: A leaf is a node with no children. Example: Input: 1 / 2 3 5 Output: ["1->2->5", "1->3"] Explanation: All root-to-leaf paths are: 1->2->5, 1->3 思路为DFS, 只是appen

[LeetCode] 437. Path Sum III_ Easy tag: DFS

You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need to start or end at the root or a leaf, but it must go downwards (traveling only from parent nodes to

[LeetCode] 系统刷题5_Dynamic Programming

Dynamic Programming 实际上是[LeetCode] 系统刷题4_Binary Tree & Divide and Conquer的基础上,加上记忆化的过程.就是说,如果这个题目实际上是类似于Divide and conquer或者说是DFS,但是在计算过程中有很多重复计算同样的过程的话,那么就可以用Dynamic prgramming/记忆化搜索来完成.基本就是利用空间来简化时间复杂度的过程. 可以/很有可能使用Dynamic programming的条件,满足之一即可. 1.

Unity Easy Save简单实用

Easy Save使用: 1.保存游戏进度        2.设计游戏关卡(怪物数量,坐标,背景图等等) Easy Save默认存储地址: C:\Users\Administrator\AppData\LocalLow\DefaultCompany\项目名 Easy Save保存的格式:(不能直接保存自定义类) http://moodkie.com/easysave/documentation/supported-types/ (保存的常见格式) Unity路径: Application.dat

svn的branch truck tag

对于branch truck tag一直迷迷糊糊的,想搞明白,但是一直又没来弄明白,最近就用了这种方式来开发 可以我又不是完全了解怎么操作,所以查看了下资料,这个解释得很详细呀,连我都看得懂的东西,真所谓"写得真好",记录下,转载http://blog.csdn.net/keda8997110/article/details/21813035 先说说什么是branch.按照Subversion的说法,一个branch是某个development line(通常是主线也即trunk)的一

CodeForces462 A. Appleman and Easy Task

A. Appleman and Easy Task time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Toastman came up with a very easy task. He gives it to Appleman, but Appleman doesn't know how to solve it. Can you