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 :
logging.level.org.springframework.cache: DEBUG
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.
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?
Edit: Later I found out, to enable EhCache logging, I need to add this line in my application.properties:
logging.level.net.sf.ehcache: DEBUG
logging.level.net.sf.ehcache: DEBUGin application.properites. Simply define the logger in logback.xml - Adrian Shum