Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static final boolean DEBUG = true; /** * Following are the methods for logging based upon a boolean that decides * for DEBUG/RELEASE mode */ public static void LogV(String iTag, String iMessage) { if (DEBUG) Log.v(iTag, iMessage); } }