-->
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.  [ 2 posts ] 
Author Message
 Post subject: Unable to stop logging of org.hibernate.cfg
PostPosted: Fri Nov 19, 2010 11:12 am 
Newbie

Joined: Wed Mar 07, 2007 12:24 am
Posts: 1
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
....


Top
 Profile  
 
 Post subject: Re: Unable to stop logging of org.hibernate.cfg
PostPosted: Wed Jan 30, 2013 5:43 am 
Newbie

Joined: Wed Jan 30, 2013 5:41 am
Posts: 1
Up ! +1

It's really annoying....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.