Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static void logException(String tag, Throwable ex) { Log.e(tag, ex.getLocalizedMessage(), ex); } }