I have installed Tomcat, and using SLF4J as our logging framework. I copied slf4j-api-1.6.4.jar and slf4j-jdk14-1.6.4.jar into the Tomcat library i.e $TOMCAT_HOME/lib.
I assumed that if I use SLF4J, it shall delegate to java.util.Logger, which will delegate to underlying Tomcat logging framework. But when I deploy and check my application, I don’t see anything getting logged. All my exception/log information is getting lost.
Is my understanding right, or did I miss anything to keep in class-path?
Instead of copying the slf4j-api-1.6.4.jar and slf4j-jdk14-1.6.4.jar under $TOMCAT/lib, i shipped these jars with the war application. in this case my exceptions are getting logged.