private static void logThrow(Level level,String className,String methodName,String message,Object[] args,Throwable thrown){
  java.util.logging.LogRecord lr=new java.util.logging.LogRecord(level,message);
  lr.setLoggerName(logger.getName());
  lr.setSourceClassName(className);
  lr.setSourceMethodName(methodName);
  lr.setParameters(args);
  lr.setThrown(thrown);
  logger.log(lr);
}

private static void logThrow ( Level level , String className , String methodName , String message , Object [ ] args , Throwable thrown ) { java . util . logging . LogRecord lr = new java . util . logging . LogRecord ( level , message ) ; lr . setLoggerName ( logger . getName ( ) ) ; lr . setSourceClassName ( className ) ; lr . setSourceMethodName ( methodName ) ; lr . setParameters ( args ) ; lr . setThrown ( thrown ) ; logger . log ( lr ) ; }
logs a thrown exception .
