title: Spring Framework application.properties vs logback.xml
body: <p>I am using Spring with Spring boot. Recently while trying my hands on EhCache, I tried enabling logging for EhCache. Setting log-level in application.properties with :</p>
  
  <pre><code>logging.level.org.springframework.cache: DEBUG
  </code></pre>
  
  <p>It had no effect. So I came across a method to enable logging using 'logback'. Now I need to put logging configuration into file logback.xml.</p>
  
  <p>My question is how configuration are handled in Spring? 
  Do logback.xml is given priority over application.properties?
  Is there a method to use only one configuration? Either application.properties or logback.xml?
  Whats the point of having two configurations?</p>
  
  <p>Edit:
  Later I found out, to enable EhCache logging, I need to add this line in my application.properties:</p>
  
  <pre><code>logging.level.net.sf.ehcache: DEBUG
  </code></pre>