title: Tomcat 7: Setting logging level for org.springframework libraries
body: <p>On Tomcat 7, I am trying to get logging output from the Spring libraries I am using.</p>
  
  <p>In Tomcat's <code>logging.properties</code> I have:</p>
  
  <pre><code>.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
  
  java.util.logging.ConsoleHandler.level = ALL
  1catalina.org.apache.juli.FileHandler.level = ALL
  
  #this does not change the logging level...
  org.springframework.level = ALL
  
  # this does change the logging level...
  javax.faces.level = ALL
  com.sun.faces.level = ALL
  </code></pre>
  
  <p>As you can see, I now do get logging messages from JSF, but no logging messages from Spring.</p>
  
  <p>Why is that and what am I missing here?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I have noticed that when I remove log4j.jar from the classpath, I do get logging from Spring. But when I add log4j.jar to the classpath, the logging from Spring is gone. <strong>Can you explain why?</strong></p>
  
  <p>BTW I do need log4j in my classpath, since one of the other jars I am using, refers to log4j explicitly in its code.</p>