code: @Override
      public synchronized void log(String message) {
          try {
              if (open) {
                  log(message, writer);
                  writer.flush();
              }
          } catch (IOException e) {
              logger.error("Error writing journal log entry", e);
          }
      }
docs: A request to log a message just writes it to the log file and flushes it
  (if shutdown has not been called).