Hi, I'm using log4j with hibernate. The log4j.properties is in my classpath, and contains:
log4j.rootLogger = DEBUG, R
log4j.appender.R = org.apache.log4j.RollingFileAppender
log4j.appender.R.File = C:/Archivos de programa/Apache Group/Tomcat 4.1/logs/gesticon.htm
log4j.appender.R.MaxFileSize = 300KB
log4j.appender.R.MaxBackupIndex = 2
#log4j.appender.R.layout = org.apache.log4j.SimpleLayout
log4j.appender.R.layout = org.apache.log4j.HTMLLayout
log4j.logger.net.sf.hibernate=info
### log just the SQL
#log4j.logger.net.sf.hibernate.SQL=debug
### log JDBC bind parameters ###
log4j.logger.net.sf.hibernate.type=info
### log schema export/update ###
log4j.logger.net.sf.hibernate.tool.hbm2ddl=debug
### log cache activity ###
#log4j.logger.net.sf.hibernate.cache=debug
### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
#log4j.logger.net.sf.hibernate.connection.DriverManagerConnectionProvider=trace
I'm using this to debug my application, and everything works fine. Logging info is written in my html file. But Hibernate writes logging info to console! Even if I turn off logging, hibernate still writes to the stdout.
What's happening?
Thanks
|