private void writeLog(String cmd){
  try {
    if (m_writer == null) {
      File file=File.createTempFile("create",".log");
      m_writer=new PrintWriter(new FileWriter(file));
      log.info(file.toString());
    }
    m_writer.println(cmd);
    m_writer.flush();
  }
 catch (  Exception e) {
    log.severe(e.toString());
  }
}

private void writeLog ( String cmd ) { try { if ( m_writer == null ) { File file = File . createTempFile ( "create" , ".log" ) ; m_writer = new PrintWriter ( new FileWriter ( file ) ) ; log . info ( file . toString ( ) ) ; } m_writer . println ( cmd ) ; m_writer . flush ( ) ; } catch ( Exception e ) { log . severe ( e . toString ( ) ) ; } }
write to file log
