Java tutorial
//package com.java2s; //License from project: Open Source License import android.util.Log; public class Main { /** * Send Log type error only if the signature is debug type * * @param tag String Tag name * @param msg message to send * @param ex Throwable exception to send stackTrace */ public static void exception(String tag, String msg, Throwable ex) { Log.e(tag, msg, ex); } }