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