synchronized public void refreshLogs () {
        try {
            displayAreaDoc.remove(0, displayAreaDoc.getLength());
        } catch (Exception e) {
            // ignore
        }

        List<LogEntry> entries = Logger.getLogEntries();
        for (LogEntry entry : entries) {
            if ((logSource == LogSource.ALL || entry.source == logSource) && (logLevel == LogLevel.DEBUG || logLevel.includes(entry.level))) {
                addMessage(entry, this.displayAreaDoc);
            }
        }
        try {
            displayAreaDoc.remove(0, 1);
        } catch (Exception e) {
            //ignore
        }
    }