In my application I'm using Hibernate, Apache Commons Logging and Log4J. But my log files are not getting generated. Is these because Hibernate uses slf4j?
In my classpath I have the following jars.
- hibernate-3.2.7.ga.jar
- hibernate-annotations-3.4.0.GA.jar
- hibernate-commons-annotations-3.3.0.ga.jar
- hibernate-core-3.3.2.GA.jar
- hibernate-entitymanager-3.4.0.GA.jar
- slf4j-api-1.5.6.jar
- slf4j-jcl-1.5.6.jar
- commons-logging-1.1.1.jar
- log4j-1.2.16.jar
- log4j.properties
I found that Hibernate uses slf4j. I want the logging to be delegated in the following route -
slf4j-api -> slf4j-jcl -> commons-logging -> log4j
But neither I'm getting the Hibernate logs, nor my application logs.
What could be the reason?