@Override
  public void append(final LogEvent event) {
    // Unlike RandomAccessFileAppender, do not append log when stopped.
    if (isStopped()) {
      // Don't try to log anything when appender is stopped
      return;
    }

    // Leverage the nice batching behaviour of async Loggers/Appenders:
    // we can signal the file manager that it needs to flush the buffer
    // to disk at the end of a batch.
    // From a user's point of view, this means that all log events are
    // _always_ available in the log file, without incurring the overhead
    // of immediateFlush=true.
    getManager().setEndOfBatch(event.isEndOfBatch()); // FIXME manager's EndOfBatch threadlocal can be deleted

    // LOG4J2-1292 utilize gc-free Layout.encode() method: taken care of in superclass
    super.append(event);
  }
Write the log entry rolling over the file when required.

@param event The LogEvent.
ql/src/java/org/apache/hadoop/hive/ql/log/HushableRandomAccessFileAppender.java