Back to project page growthpush-android.
The source code is released under:
Apache License
If you think the Android project growthpush-android 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.growthpush; /* w ww. jav a2 s. co m*/ import android.util.Log; public class Logger { private static final String TAG = "GrowthPush"; private boolean debug = false; public Logger() { super(); } public void debug(String message) { if (debug) Log.d(TAG, message); } public void info(String message) { if (debug) Log.i(TAG, message); } public void warning(String message) { if (debug) Log.w(TAG, message); } public void error(String message) { if (debug) Log.e(TAG, message); } public void setDebug(boolean debug) { this.debug = debug; } }