These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate logging: odd man out
PostPosted: Thu Oct 16, 2008 6:13 pm 
Newbie

Joined: Thu Oct 09, 2008 1:25 pm
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.