private void logException(Throwable t,String url){
  log.log(String.format("---- ERROR %s",url));
  StringWriter sw=new StringWriter();
  t.printStackTrace(new PrintWriter(sw));
  log.log(sw.toString());
  log.log("---- END ERROR");
}

private void logException ( Throwable t , String url ) { log . log ( String . format ( "---- ERROR %s" , url ) ) ; StringWriter sw = new StringWriter ( ) ; t . printStackTrace ( new PrintWriter ( sw ) ) ; log . log ( sw . toString ( ) ) ; log . log ( "---- END ERROR" ) ; }
log an exception that occurred during the processing of a request or response .
