Back to project page TumblifeForAndroid.
The source code is released under:
GNU General Public License
If you think the Android project TumblifeForAndroid 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 jp.mitukiii.tumblife.util; /*ww w . ja v a 2 s . c om*/ import jp.mitukiii.tumblife.Main; import android.util.Log; public class TLLog { public static final boolean IS_DEBUG = false; public static int e(String msg) { return Log.e(Main.APP_NAME, msg); } public static int e(String msg, Throwable tr) { return Log.e(Main.APP_NAME, msg, tr); } public static int w(String msg) { return Log.w(Main.APP_NAME, msg); } public static int w(String msg, Throwable tr) { return Log.w(Main.APP_NAME, msg, tr); } public static int i(String msg) { return Log.i(Main.APP_NAME, msg); } public static int i(String msg, Throwable tr) { return Log.i(Main.APP_NAME, msg, tr); } public static int d(String msg) { if (IS_DEBUG) { return Log.d(Main.APP_NAME, msg); } else { return Log.DEBUG; } } public static int d(String msg, Throwable tr) { if (IS_DEBUG) { return Log.d(Main.APP_NAME, msg, tr); } else { return Log.DEBUG; } } public static int v(String msg) { if (IS_DEBUG) { return Log.v(Main.APP_NAME, msg); } else { return Log.VERBOSE; } } public static int v(String msg, Throwable tr) { if (IS_DEBUG) { return Log.v(Main.APP_NAME, msg, tr); } else { return Log.VERBOSE; } } }