Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static boolean LOG_ENABLED; public static void v(String tag, String msg) { if (LOG_ENABLED) Log.v(tag, msg); } public static void v(String tag, String msg, Throwable tr) { if (LOG_ENABLED) Log.v(tag, msg, tr); } }