import android.util.Log;
/**
* Created by SY on 2016/6/2.
*/
public class LogUtils {
public static boolean isDebug = true;
private static final String TAG = "SY";
public static void i(String msg) {
if (isDebug)
Log.i(TAG, msg);
}
public static void d(String msg) {
if (isDebug)
Log.d(TAG, msg);
}
public static void e(String msg) {
if (isDebug)
Log.e(TAG, msg);
}
public static void w(String msg) {
if (isDebug)
Log.w(TAG, msg);
}
public static void v(String msg) {
if (isDebug)
Log.v(TAG, msg);
}
public static void i(String tag, String msg) {
if (isDebug)
Log.i(tag, msg);
}
public static void d(String tag, String msg) {
if (isDebug)
Log.d(tag, msg);
}
public static void e(String tag, String msg) {
if (isDebug)
Log.e(tag, msg);
}
public static void w(String tag, String msg) {
if (isDebug)
Log.w(tag, msg);
}
public static void v(String tag, String msg) {
if (isDebug)
Log.v(tag, msg);
}
}
Log日志工具类
最新推荐文章于 2020-10-17 13:24:51 发布