Java tutorial
//package com.java2s; //License from project: Apache License import android.util.Log; public class Main { private static boolean isDebugging = false; public static void d(String tag, String msg) { d(tag, msg, null); } public static void d(String tag, String msg, Throwable tr) { if (isDebugging) { Log.d(tag, msg, tr); } } }