private void log(Level level,String message,Exception e){
  LogRecord record=new LogRecord(level,message);
  record.setLoggerName(logger.getName());
  record.setThrown(e);
  record.setSourceClassName(logger.getName());
  record.setSourceMethodName(getMethodName());
  logger.log(record);
}

private void log ( Level level , String message , Exception e ) { LogRecord record = new LogRecord ( level , message ) ; record . setLoggerName ( logger . getName ( ) ) ; record . setThrown ( e ) ; record . setSourceClassName ( logger . getName ( ) ) ; record . setSourceMethodName ( getMethodName ( ) ) ; logger . log ( record ) ; }
log the message at the specified level with the specified exception if any .
