question: static public PrintWriter log ( Throwable xcpt , PrintWriter out ) { out . println ( "-----------" ) ; out . println ( xcpt . toString ( ) ) ; out . println ( "Stack Trace:" ) ; out . print ( getStackTrace ( xcpt ) ) ; out . println ( "-----------" ) ; out . flush ( ) ; return out ; }
target:  A utility method to format an Exception to a PrintWriter.