Java tutorial
//package com.java2s; import android.util.Log; public class Main { private static boolean enableDebug = true; public static void printLogRequest(Class<?> c, String url, String data) { if (enableDebug) { Log.e(c.getSimpleName(), "url/data: " + url + "/" + data); } } }