title: Spring Boot - Loading 'logback.xml' from the WEB-INF/ folder when deploying as WAR
body: <p>I'm working on updating a traditional Spring MVC application to Spring Boot (deployed as WAR). </p>
  
  <p>One requirement is that in order to retain compatibility with our remote installations, the <code>logback.xml</code> file <em>needs</em> to be in the following location in the deployed webapp: </p>
  
  <p><code>webapp/WEB-INF/logback.xml</code></p>
  
  <p>In the project source, if I put the file in <code>src/main/webapp/WEB-INF/logback.xml</code>, it gets successfully copied to <code>webapp/WEB-INF/logback.xml</code>, but I can' find a way to load it and use it from that location.</p>
  
  <p>I've tried setting the Spring Boot <code>logging.config</code> property to the following: </p>
  
  <pre><code>logging.config=/WEB-INF/logback.xml
  </code></pre>
  
  <p>hoping that the auto-configuration would take care of it, but this fails without an error message and the default Spring Boot logging configuration gets loaded instead.</p>
  
  <p>What is the proper way of handling this with Spring Boot? (example code is welcome)</p>