Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static int WRITE_LOGCAT_MODE = 1; public static void writeLogCat(String tag, String content) { if (1 == WRITE_LOGCAT_MODE) { Log.i("TORISAN:" + tag, content); } else { // Do nothing } } }