Hi all,
I am using Hibernate 3.3.0SP1 in WebSphere 6.1, using Spring 2.5.5, configured with JBossCache 1.4.1SP10 as the second level cache provider.
For logging, I am not able to get Hibernate to log successfully. WebSphere, Spring, JGroups , and JBossCache all used Jakarta Commons Logging, which I have configured to log on top of Log4j by virtue of having the log4j jar and a log4.properties in my classpath.
For whatever reason, Hibernate is using SLF4J as it's logging mechanism. I cannot get this to play nicely with the other components that use JCL. In my classpath, I have the slf4j api 1.4.2 and slf4j simple 1.5.2 jars in my classpath. If I put the log4j-over-slf4j 1.5.2 jar in the class path, everything except Hibernate works as expected. If I place the jcl-over-slf4j jar in my class path, the log4j properties file is ignored, and I get logging for everything, but only at the INFO level.
Is there a way to have all components join hands in peace and brotherhood and honor the log4j logging configuration?
Thx.
/doug
|