Hi,
I've noticed my problem has been already discussed but I cannot understand how to resolve it.
I'd like to avoid all the INFO hibernate logging.
I tried to change the hibernate.properties.
I've put there:
###########
### LOG ###
###########
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
### direct messages to file hibernate.log ###
#log4j.appender.file=org.apache.log4j.FileAppender
#log4j.appender.file.File=hibernate.log
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
### set log levels - for more verbose logging change 'info' to 'debug' ###
log4j.rootLogger=ERROR, stdout
log4j.logger.net.sf.hibernate=ERROR
### log just the SQL
#log4j.logger.net.sf.hibernate.SQL=ERROR
### log JDBC bind parameters ###
log4j.logger.net.sf.hibernate.type=ERROR
### log schema export/update ###
log4j.logger.net.sf.hibernate.tool.hbm2ddl=ERROR
### log cache activity ###
log4j.logger.net.sf.hibernate.cache=ERROR
### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
#log4j.logger.net.sf.hibernate.connection.DriverManagerConnectionProvider=trace
but nothing has changed.
I'd like to remove:
Jul 19, 2004 2:37:18 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.1 final
Jul 19, 2004 2:37:18 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: loaded properties from resource hibernate.properties:
etc etc
and leave only errors.
Is there someone who could help me?
Thank you very much.
Bye,
Roberto
|