Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static boolean debugMode = true; private static String tag = ""; public static void debug(String message) { if (debugMode) { Log.d(tag, message); } } }