logFileName = fname; logMessage("------------------------------------------");
originalOut = System.out;  try {  FileOutputStream tmpOutputStream = new FileOutputStream(fname); fileRedirecter = new PrintStream(tmpOutputStream); System.setOut(fileRedirecter); System.setErr(fileRedirecter); }  catch (Exception e) { System.out.println("EXCEPTION when writing to LOGFILE"); }  fileRedirecter.println("------------------------------------------");
	public static void logToFile(String fname) {		Debug.debugLevel = 3;		logFile = true;		logFileName = fname;		logMessage("------------------------------------------"); //$NON-NLS-1$		msg("logging to file \""+ fname + "\" has been enabled"); //$NON-NLS-1$,  //$NON-NLS-2$	}