Java tutorial
//package com.java2s; import android.util.Log; public class Main { static final public String LOG_NAME = "PT_LOG"; static final public boolean DEBUG_MODE = true; static public void makeLog(String message) { if (DEBUG_MODE) Log.d(LOG_NAME, message); } }