logfile = new File(LOG_DIR + File.separator + filename);
    public GameLog(String filename) {        try {            File logDir = new File(LOG_DIR);            if (!logDir.exists()) {                logDir.mkdir();            }            logfile = new File(LOG_DIR + File.separator + filename);            //maxFilesize = maxSize;            if (PreferenceManager.getClientPreferences().stampFilenames()) {                filename = StringUtil.addDateTimeStamp(filename);            }            //writer = new BufferedWriter(new FileWriter(LOG_DIR + File.separator + filename, append));            writer = new BufferedWriter(new FileWriter(LOG_DIR + File.separator + filename));            append("Log file opened " + new Date().toString()); //$NON-NLS-1$        } catch (IOException ex) {            writer = null;            System.err.println("GameLog:" + ex.getMessage());        }    }