Java tutorial
//package com.java2s; //License from project: Open Source License import android.util.Log; public class Main { private static boolean SHOW = true; private static String TAG = "tmclog"; public static void d(String tag, String msg) { if (SHOW) { Log.d(tag, msg); } } public static void d(String msg) { if (SHOW) { Log.d(TAG, msg); } } }