@Override
  public synchronized void stopSession() {
    LOGGER.info("Stopping session in {}.", this);
    if (logWriter == null) {
      pause();
      return;
    }
    try {
      logWriter.shuttingDown();
      pause();
      logWriter.closingLogFile();
    } finally {
      logWriter = null;
    }
  }
Builds LogWriterAppender instances.

@param <B> The type to build
geode-log4j/src/main/java/org/apache/geode/logging/log4j/internal/impl/LogWriterAppender.java