Back to project page DivisionByZero.
The source code is released under:
Apache License
If you think the Android project DivisionByZero listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ggstudios.utils; /*from w w w . j av a2 s . c o m*/ import android.util.Log; public class DebugLog { private static final boolean isLoggingEnabled = true; public static void d(String tag, String msg){ if(isLoggingEnabled) Log.d(tag, msg); } public static void e(String tag, String msg){ if(isLoggingEnabled) Log.e(tag, msg); } public static void e(String tag, String msg, Throwable t){ if(isLoggingEnabled) Log.e(tag, msg, t); } public static void e(String tag, Throwable t){ if(isLoggingEnabled) Log.e(tag, "", t); } }