On Tomcat 7, I am trying to get logging output from the Spring libraries I am using.
In Tomcat's logging.properties I have:
The above code does not cause logging messages from Spring to be logged.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
However, if I also add:
then I do get logging messages from JSF to be logged.Code:# this does change the logging level... javax.faces.level = ALL com.sun.faces.level = ALL
Why does the logging not work with Spring and what should I do to make it work?
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.


Reply With Quote
