Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static void log(Object o) { try { Log.d("MGX", o.toString()); } catch (Exception e) { Log.e("MGX", "ERROR LOGGING"); } } public static void e(Object o) { try { Log.e("MGX", o.toString()); } catch (Exception e) { Log.e("MGX", "ERROR LOGGING"); } } }