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 i(String tag, String text) { if (debug) { Log.i(tag, text); } } public static void i(String text) { if (debug) { Log.i(TAG, text); } } }