Back to project page jsonxmlcompare.
The source code is released under:
Apache License
If you think the Android project jsonxmlcompare 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.davidtpate.util; /*from www . j av a2s .c om*/ import com.davidtpate.jsonxml.BuildConfig; @SuppressWarnings("unused") public class Log { public static final int LEVEL = android.util.Log.VERBOSE; public static void d(String tag, String message) { if (Log.LEVEL <= android.util.Log.DEBUG && BuildConfig.DEBUG) { android.util.Log.d(tag, message); } } public static void d(String tag, Throwable t, String message) { if (Log.LEVEL <= android.util.Log.DEBUG && BuildConfig.DEBUG) { android.util.Log.d(tag, message, t); } } public static void e(String tag, String message) { if (Log.LEVEL <= android.util.Log.ERROR && BuildConfig.DEBUG) { android.util.Log.e(tag, message); } } public static void e(String tag, String message, Throwable e) { if (Log.LEVEL <= android.util.Log.ERROR && BuildConfig.DEBUG) { android.util.Log.e(tag, message, e); } } public static void i(String tag, String message) { if (Log.LEVEL <= android.util.Log.INFO && BuildConfig.DEBUG) { android.util.Log.i(tag, message); } } public static void w(String tag, String message) { if (Log.LEVEL <= android.util.Log.WARN && BuildConfig.DEBUG) { android.util.Log.w(tag, message); } } public static void w(String tag, Throwable t, String message) { if (Log.LEVEL <= android.util.Log.WARN && BuildConfig.DEBUG) { android.util.Log.w(tag, message, t); } } public static void v(String tag, String message) { if (Log.LEVEL <= android.util.Log.VERBOSE && BuildConfig.DEBUG) { android.util.Log.v(tag, message); } } public static void v(String tag, Throwable t, String message) { if (Log.LEVEL <= android.util.Log.VERBOSE && BuildConfig.DEBUG) { android.util.Log.v(tag, message, t); } } }