question: public void exception ( Throwable e ) { StringWriter writer = new StringWriter ( ) ; e . printStackTrace ( new PrintWriter ( writer ) ) ; error ( writer . toString ( ) ) ; }
target:  Format and print a stack trace on the Logger Object. This calls the StackTrace directly, meaning underlying causes and other factors are included in the log. This is the equivalent of calling e.printStackTrace(), but redirecting it to the logger object.