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