WSO2Con 2013 CFP Banner

Stopping unnecessary DEBUG messages from Hibernate when Tungsten is deployed on JBoss?

By Afkham Azeez
Date: Wed, 31st May, 2006
Level:
Reads: 6145 Discuss this article on Stack Overflow
Q. How do I stop the unnecessary DEBUG messages from Hibernate when I deploy Tungsten on JBoss?
afkham_azeez's picture
Afkham Azeez
Director of Architecture
WSO2
A. The default log level of the JBoss root logger is DEBUG, and this is inherited by the Loggers used within Tungsten. Hibernate, in particular, is extremely verbose in DEBUG log level. In order to avoid the Hibernate DEBUG level messages, do the following: 1. Locate the log4j.xml file in the configuration file set you installed Tungsten in to. e.g. JBOSS_HOME/server/default/conf/log4j.xml 2. Add the following XML segment to this log4j.xml file. <category name="org.hibernate"> <priority value="WARN"/> </category> 3. Restart your JBoss serverApplies To: WSO2 WSAS (previously known as Tungsten) for Java, versions 1.0 and above 
WSO2Con 2014