On Tomcat 7, I am trying to get logging output from the Spring libraries I am using.
In Tomcat's logging.properties
I have:
.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
As you can see, I now do get logging messages from JSF, but no logging messages from Spring.
Why is that and what am I missing here?
UPDATE:
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. Can you explain why?
BTW I do need log4j in my classpath, since one of the other jars I am using, refers to log4j explicitly in its code.