-->
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 log
PostPosted: Wed Oct 15, 2008 12:24 pm 
Newbie

Joined: Thu Aug 14, 2008 4:26 pm
Posts: 7
Hi all,

this is how my log4j properties is configured
# root logger
log4j.rootLogger=trace, R

#hibernate log
log4j.logger.org.hibernate.SQL=trace
log4j.logger.org.hibernate.jdbc=trace, R
log4j.logger.org.hibernate.transaction=trace, R
log4j.logger.org.hibernate.type=trace
log4j.additivity.org.hibernate.sql=trace, R
log4j.logger.net.sf.hibernate=trace, R
log4j.logger.net.sf.hibernate.type=trace, R
log4j.additivity.net.sf.hibernate=trace, R
log4j.additivity.net.sf.hibernate.type=trace, R

hibernte sql statements are still shown on console...

any suggestions pls ?

web.xml
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/classes/log4j.properties</param-value>
</context-param>

hibernate.cfg.xml
<property name="show_sql">true</property>


Thanks
K


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.