package gn.com.android.theme.utils;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
public class DebugUtil {
public static final boolean OPEN_STRICT_MODE = true;
public static final String TAG = "DebugUtil";
public static final String HUM = "HUM";
public static final boolean DEBUG = true;
public static void toast(Context context, String content) {
Toast.makeText(context, content, Toast.LENGTH_SHORT).show();
}
public static void debug(String tag, String msg, Throwable tr) {
if (DEBUG) {
Log.d(tag, msg, tr);
}
}
public static void debug(String tag, String msg) {
if (DEBUG) {
Log.d(tag, msg);
}
}
public static void debug(String msg) {
if (DEBUG) {
Log.d(TAG, msg);
}
}
public static void error(String tag, String msg, Throwable tr) {
if (DEBUG) {
Log.e(tag, msg, tr);
}
}
public static void error(String tag, String error) {
Log.e(tag, error);
}
public static void error(String error) {
Log.e(TAG, error);
}
}
DebugUtil
最新推荐文章于 2024-04-14 09:49:23 发布