Back to project page qcn.
The source code is released under:
GNU General Public License
If you think the Android project qcn 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 zsoltmester.qcn.tools; //from www . j a v a 2 s .co m import android.util.Log; public class Logger { private final boolean IS_RELEASE_MODE = false; private String logTag; private Logger(String logTag) { this.logTag = logTag; } public static Logger createWithLogTag(String logTag) { return new Logger(logTag); } public void log(String message) { if (IS_RELEASE_MODE) { // Nothing to log in release. return; } Log.d(logTag, message); } }