Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static final boolean DEBUG = true; public static void e(String tag, String message) { if (DEBUG) { Log.e(tag, message); } } public static void e(String tag, String message, Exception e) { if (DEBUG) { Log.e(tag, message, e); } } }