import android.util.Log;
public class DemoLog {
public static boolean LOG = true;
public string tag=null;
public DemoLog(Context c) {
tag=c. getClass().getSimpleName();
}
public static void i(String string) {
if(LOG) {
Log.i(tag, string);
}
}
public static void e( String string) {
if(LOG) {
Log.e(tag, string);
}
}
public static void d( String string) {
if(LOG) {
Log.d(tag, string);
}
}
public static void v(String string) {
if(LOG) {
Log.v(tag, string);
}
}
public static void w( String string) {
if(LOG) {
Log.w(tag, string);
}
}
public static void setDebug(boolean b) {
LOG = b;
}
}