title: log4j configuration file and jar application
body: <p>I'm using the log4j2 library to manage the logging process.
  I created a configuration file named log4j2.xml containing the Appenders and Loggers configurations. Then, I defined a Logger in each class</p>
  
  <pre><code>private static Logger my_logger = LogManager.getLogger(my_class);
  </code></pre>
  
  <p>I did not specify anywhere the name of the conf file, so I think that the library implicitly get and read it.</p>
  
  <p>Now, I need to provide my application in the form of a jar file, so I need to make the config file available so that the user can modify and configure it.</p>
  
  <p>In my case, I suggest to create a XXX folder at the level of the jar file, containing all the configuration files used by my app.</p>
  
  <p>My question is how can I say to the app "get XXX/log4j2.xml" rather than the xml contained into the jar.</p>