title: Changing log level for an executable JAR
body: <p>I have built a maven Java project and deployed my JAR as an executable one on linux. I placed my log4j.xml under /src/main/resources directory during the build and hence it is now part of the final deployed JAR. I have configured log4j.xml with RollingFileAppender. So far, everything is working fine and I am able to see the logs generated.</p>
  
  <p>However, wondering how to change the log level or any of the configuration within log4j.xml which is now part of the deployed JAR?</p>
  
  <p>The other approaches I tried is having the log4j.xml outside in a separate directory and passed it as a configuration option to the JAR file using the below command</p>
  
  <pre><code>java -Xms512m -Xmx1024m -Dlog4j.configuration=/etc/myapp/log4j.xml -jar mylar.jar /etc/input.properties
  
  java -Xms512m -Xmx1024m -Dlog4j.configurationFile=/etc/myapp/log4j.xml -jar mylar.jar /etc/input.properties
  </code></pre>
  
  <p>However, it is not working. No logs are being generated. So wondering whether I am doing this correctly or there is a better approach to implement.</p>