WSO2Con 2013 CFP Banner

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

Archived Content
This article is provided for historical perspective only, and may not reflect current conditions. Please refer to relevant product page for more up-to-date product information and resources.
Discuss this article on Stack Overflow
By Afkham Azeez
  • 31 May, 2006
  • Level: 
  • Reads: 6959
Q. How do I stop the unnecessary DEBUG messages from Hibernate when I deploy Tungsten on JBoss?
Afkham Azeez
Director of Architecture
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