title: How to load log4j2.properties file from outside the classpath programatically?
body: <p>How to load the different log4j2.properties file from outside the classpath after it is initialized with another properties file from classpath.I have tried the below code </p>
  
  <pre><code>Configurator.initialize(null, "G:/log4j2.properties");
  final Logger LOGGER = LogManager.getLogger(LoggingSetupService.class.getName());
  LOGGER.debug(logMessage);
  </code></pre>
  
  <p>The new log4j2.properties file has different filepath for creating the log file but the log file is created with the filepath from the classpath properties file</p>