public static InternalLogWriter createLogWriterLogger(final LogConfig logConfig,
      final boolean secure) {
    String name = secure ? SECURITY_LOGGER_NAME : MAIN_LOGGER_NAME;
    return createLogWriterLogger(name, logConfig.getName(), secure);
  }
Creates the log writer for a distributed system based on the system's parsed configuration. The
initial banner and messages are also entered into the log by this method.

@param logConfig geode configuration for the logger
@param secure indicates if the logger is for security related messages
geode-core/src/main/java/org/apache/geode/internal/logging/LogWriterFactory.java