-->
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: How to reduce Hibernate DEBUG info in Jboss
PostPosted: Thu Feb 24, 2005 11:16 am 
Regular
Regular

Joined: Sat May 15, 2004 4:27 am
Posts: 79
Hi all, i am using Hibernate Hibernate 2.1.5 with JBoss 3.2.5 and i am looking to know how to reduce the
Hibernate info. Hibernate is running with DEBUG mode by default. I want to change that mode. How can
i do that ?

--------
Sebastien


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 24, 2005 11:55 am 
Regular
Regular

Joined: Sat May 15, 2004 4:27 am
Posts: 79
I found that solution. In conf repertory of JBoss, there is an log4j.xml file.
In add a new limit categorie with these lines :

<!-- Limit net.sf.hibernate category to INFO -->
<category name="net.sf.hibernate">
<priority value="INFO"/>
</category>

Hoping it's the correct way to do that

--------
Sebastien


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 24, 2005 11:57 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Modify the log4j.xml file for the for the server that you are using. (I think in the conf directory). You may wish to increase the threshold of the logger - e.g.
Code:
<param name="Threshold" value="WARN"/>

or you may wish to limit certain categories, e.g.
Code:
    <category name="net.sf">
      <priority value="INFO"/>
   </category>


Note that you do not need to restart the server for the changes to take effect - a thread scans for changes periodically.


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.