title: Proper location of log4j2.xml files within a tomcat webapp
body: <p>We have a webapp that contains two <code>log4j2.xml</code> files:</p>
  
  <ul>
  <li>one within <code>WEB-INF/classes</code> containing webapp-specific logging settings <em>(1)</em>, and</li>
  <li>one within the root directory of a dependency located in <code>WEB-INF/lib</code> containing default logging settings that we use also in other webapps <em>(2)</em></li>
  </ul>
  
  <p><em>My questions are:</em></p>
  
  <ol>
  <li>How does tomcat read and evaluate these files?</li>
  <li>In which order are they read?</li>
  <li>Is it possible to overwrite settings of <em>(2)</em> by <em>(1)</em> and how would I do that? </li>
  </ol>
  
  <p>Thank you.</p>