I'm using dbunit, junit, spring 3, hibernate 3, maven I'm able to configure my log4j.xml file to stop the logging for the other frameworks such as org.springframework. But nothing I do works for these hibernate logs for cfg, object mappings, etc. I've added sl4j-log4j into my classpath (based on other posts), but when I run the tests I still get all this logging.
I note that the layout below is not the one I defined in my log4j.xml, so I'm not sure where it's coming from.
Nov 19, 2010 8:04:52 AM org.hibernate.cfg.annotations.Version <clinit> INFO: Hibernate Annotations 3.4.0.GA Nov 19, 2010 8:04:52 AM org.hibernate.cfg.Environment <clinit> INFO: Hibernate 3.3.0.SP1 Nov 19, 2010 8:04:52 AM org.hibernate.cfg.Environment <clinit> INFO: hibernate.properties not found Nov 19, 2010 8:04:52 AM org.hibernate.cfg.Environment buildBytecodeProvider INFO: Bytecode provider name : javassist Nov 19, 2010 8:04:52 AM org.hibernate.cfg.Environment <clinit> INFO: using JDK 1.4 java.sql.Timestamp handling Nov 19, 2010 8:04:52 AM org.hibernate.annotations.common.Version <clinit> INFO: Hibernate Commons Annotations 3.1.0.GA Nov 19, 2010 8:04:52 AM org.hibernate.ejb.Version <clinit> INFO: Hibernate EntityManager 3.4.0.GA ... Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: RDBMS: H2, version: 1.2.144 (2010-10-15) Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC driver: H2 JDBC Driver, version: 1.2.144 (2010-10-15) Nov 19, 2010 8:04:56 AM org.hibernate.dialect.Dialect <init> INFO: Using dialect: org.hibernate.dialect.H2Dialect Nov 19, 2010 8:04:56 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory INFO: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory Nov 19, 2010 8:04:56 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic flush during beforeCompletion(): disabled Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic session close at end of transaction: disabled Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch size: 15 Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch updates for versioned data: disabled Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Scrollable result sets: enabled Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC3 getGeneratedKeys(): enabled Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Connection release mode: auto Nov 19, 2010 8:04:56 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Default batch fetch size: 1 ....
|