Simple Log wrapper class:
Public final class CLog {public static final Boolean DEBUG = true; Private CLog () {} public static void D (string tag, string desc) {if (DEBUG) LOG.D (tag, desc); public static void D (string tag, string desc, Throwable tr) {if (DEBUG) LOG.D (tag, desc, tr) ; public static void V (string tag, string desc) {if (DEBUG) LOG.V (tag, desc); public static void V (string tag, string desc, Throwable tr) {if (DEBUG) LOG.V (tag, desc); } public static void W (string tag, string desc) {if (DEBUG) LOG.W (tag, desc); } public static void W (String tag, throwable IoE) {if (DEBUG) LOG.W (tag, IOE); public static void W (string tag, string desc, Throwable e) {if (DEBUG) LOG.W (tag, DESC, E); } public static void I (string tag, string desc) {if (DEBUG) log.i (tag, desc); } public static void I(string tag, string desc, Throwable tr) {if (DEBUG) log.i (tag, desc, tr); public static void E (string tag, string desc) {if (DEBUG) LOG.E (tag, desc); public static void E (string tag, string desc, Throwable tr) {if (DEBUG) LOG.E (tag, desc, tr); }}
Android Logcat Package Class