code: private void logAll() {
      synchronized (this) {
        final StringBuilder sb = new StringBuilder();
        Level highestLevel = Level.FINEST;
        for (final LogRecord record : this.logs) {
          sb.append(formatter.format(record));
          sb.append("\n");
          if (record.getLevel().intValue() > highestLevel.intValue()) {
            highestLevel = record.getLevel();
          }
        }
        try {
          final int level = getLevel(highestLevel);
          NativeInterop.clrBufferedLog(level, sb.toString());
        } catch (Exception e) {
          System.err.println("Failed to perform CLRBufferedLogHandler");
        }
  
        this.logs.clear();
      }
    }
docs: Flushes the log buffer, logging each buffered log message using
  the reef-bridge log function.