public void log(Date time,String message){
  try {
    PrintWriter w=new PrintWriter(new FileWriter(filename,true));
    w.println("\n\u001b[32m" + format.format(time) + "\u001b[0m "+ message);
    w.close();
  }
 catch (  IOException e) {
  }
}

public void log ( Date time , String message ) { try { PrintWriter w = new PrintWriter ( new FileWriter ( filename , true ) ) ; w . println ( "\n[32m" + format . format ( time ) + "[0m " + message ) ; w . close ( ) ; } catch ( IOException e ) { } }
emits a message to the log , timestamped with the specified time .
