title: External log4j2 configuration file
body: <p>I have a spring web application using log4j2 as a logging system.
  log4j2 : 2.6.2
  slf4j : 1.7.21</p>
  
  <p>i have got a log4j2.xml in my classpath used in production.</p>
  
  <p>I want to use a different configuration file for development, especially when i run the server from Eclipse.</p>
  
  <p>i tried to add -Dlog4j.configurationFile=C:\Dev\log4j2.xml to the Default VM arguments in eclipse as well as the server parameters but no luck so far, it's always picking up the log4j2.xml from the classpath</p>
  
  <p>Any idea ?</p>
  
  <p>Thank you</p>