|
Q. How do I stop the unnecessary DEBUG messages from Hibernate when I deploy Tungsten on JBoss?
|
Date: Wed, 31st May, 2006
Level:
Reads: 5702
Discuss this article on Stack Overflow
|
|
|
|
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