if (needsLogging) {
if (LogWriter.needsLogging) {
	public synchronized void logMessage(String message, String logFileName) {		if (needsLogging) {						try {				File logFile = new File(logFileName);				if (!logFile.exists()) {					logFile.createNewFile();					printWriter = null;				}				// Append buffer to the end of the file.				FileWriter fw = new FileWriter(logFileName, true);				PrintWriter printWriter = new PrintWriter(fw, true);				printWriter.println(				" ---------------------------------------------- ");				printWriter.println(message);				printWriter.close();				fw.close();							} catch (IOException ex) {				ex.printStackTrace();			}		}	}