Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static Boolean isDebug = true; public static void e(Object msg) { if (getIsDebug()) { Log.e("========error========", msg + ""); } } public static Boolean getIsDebug() { return isDebug; } }