title: Which takes priority: logback.xml or logback-test.xml?
body: <p>I am very new to logback. If my spring boot project contains both the files - </p>
  
  <ul>
  <li><code>logback.xml</code>: present under *src/main/resources/</li>
  <li><code>logback-test.xml</code>: present under *src/test/resources/</li>
  </ul>
  
  <p>Which one will load? <code>logback.xml</code> or <code>logback-test.xml</code>?</p>
  
  <p>I was reading the documentation of logback and it says, first it looks for <code>logback-test.xml</code> and then <code>logback.xml</code>. </p>
  
  <p>So is it like <code>logback-test.xml</code> file will take a priority over <code>logback.xml</code> if we deploy the application?</p>
  
  <p>Thanks!</p>
  
  <p>Saurabh</p>