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