private void updateLog() {
    logView.setText("");

    for (String line : LOGGER.getLogs()) {
      logView.append(line);
      logView.append("\n");
    }
  }
 private void clear() {
   LOGGER.clear();
   updateLog();
 }