Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static boolean LOGGING_ENABLED = false; public static void LOGW(final String tag, String message) { if (LOGGING_ENABLED) { Log.w(tag, message); } } public static void LOGW(final String tag, String message, Throwable cause) { if (LOGGING_ENABLED) { Log.w(tag, message, cause); } } }