Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static boolean isLog = false; public static void d(String Tag, String message) { if (!isLog) { return; } Log.d(Tag, message); } public static void d(String message) { if (!isLog) { return; } Log.d("CommonTool", message); } }