Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static boolean ENABLE_LOG = true; public static void logd(String tag, String msg) { if (ENABLE_LOG) { Log.d(tag, msg); } } }