Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static final String TAG = "Http"; private static boolean debug = true; public static void e(String tag, String text) { if (debug) { Log.e(tag, text); } } public static void e(String text) { if (debug) { Log.e(TAG, text); } } }