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
|