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 e(String tag, String msg) { if (SHOW) { Log.e(tag, msg); } } public static void e(String msg) { if (SHOW) { Log.e(TAG, msg); } } }