Back to project page androidcodes.
The source code is released under:
GNU General Public License
If you think the Android project androidcodes 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.app.twitterclient.utils; /*from www . jav a2 s .c om*/ import android.util.Log; /** * * @author ranjeet_sinha An Utility to enable/Disable logs * */ public class LogUtils { static final boolean LOG = true; public static void LOGD(final String tag, String message) { if (LOG) { Log.d(tag, message); } } public static void LOGV(final String tag, String message) { if (LOG) { Log.v(tag, message); } } public static void LOGI(final String tag, String message) { if (LOG) { Log.i(tag, message); } } public static void LOGW(final String tag, String message) { if (LOG) { Log.w(tag, message); } } public static void LOGE(final String tag, String message) { if (LOG) { Log.e(tag, message); } } }