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