Java tutorial
//package com.java2s; //License from project: Apache License import android.util.Log; public class Main { private static boolean isDebugging = false; public static void i(String tag, String msg) { i(tag, msg, null); } public static void i(String tag, String msg, Throwable tr) { if (isDebugging) { Log.i(tag, msg, tr); } } }