-->
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.  [ 3 posts ] 
Author Message
 Post subject: Turning logging off
PostPosted: Mon Jul 03, 2006 6:50 am 
Newbie

Joined: Sat Jul 01, 2006 6:49 pm
Posts: 2
I have tried everything I can to turn Hibernate logging off... I have modified the log4j.properties file, uncommented various configurations etc. but still I get some very annoying lines out from Hibernate. The lines all start with


Hibernate: ...


Can anyone tell my how to turn these last lines off? The lines are written when save and delete are called, and the SQL for the insert and delete are written out too.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 7:43 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
In your hibernate.cfg.xml file, is there ?
Code:
<property name="show_sql">false</property>


But remember that you MUST NOT code without activating these logs. In fact, you could switch it off to deploy in prod, but it is absolutely recommended to keep an eye on the queries done by Hibernate. If you don't, then you're running a big risk when your app will be in production. :-/

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject: Super! It worked! Thanks!
PostPosted: Tue Jul 04, 2006 5:40 am 
Newbie

Joined: Sat Jul 01, 2006 6:49 pm
Posts: 2
Yes, that solved the problem! Thanks a lot!


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