-->
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.  [ 5 posts ] 
Author Message
 Post subject: turn off logging of Binder
PostPosted: Wed Aug 04, 2004 4:58 am 
Newbie

Joined: Tue Apr 27, 2004 4:54 am
Posts: 10
Hi all,

i use hibernate 2.1 and Log4J. In the class net.sf.hibernate.cfg.Binder.java there are some log.info(...) statements. They is no block to check if info level enabled. So there is no way to switch off INFO logging of Binder class.

Is it fixed in later versions or there is a way, that i don't know how to switch it off???

thanks a lot

Dmitri


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 04, 2004 12:05 pm 
Newbie

Joined: Tue Apr 27, 2004 4:54 am
Posts: 10
I have looked on the rest if the code.

It seems to be the rule, that log.info() is used without asking of log.isInfoEnabled(). May be i don't know some tricks, how INFO level could be schwiched off.

Can someone explain??

thanks
Dmitri


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 04, 2004 5:43 pm 
Newbie

Joined: Tue Jul 27, 2004 1:33 pm
Posts: 18
Location: South Africa
Isn't this controlled in the log4j.properties file?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 06, 2004 3:46 am 
Newbie

Joined: Tue Apr 27, 2004 4:54 am
Posts: 10
yes, it is controlled, but log4j can only turn off info or warn or debug statements... if they are within the if (isInfoEnabled()) {}..


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 06, 2004 5:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No, this is not correct. isInfoEnabled and the likes are just performance optisations. Please read the log4j docs for more information about that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.