//package org.alldroid.forum.utils;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import android.util.Log;
public class ExceptionHelper {
public static void WriteStack ( String tag, Exception ex ) {
final Writer result = new StringWriter ();
final PrintWriter printWriter = new PrintWriter ( result );
ex.printStackTrace ( printWriter );
String stacktrace = result.toString ();
printWriter.close ();
Log.e ( tag, stacktrace );
}
}