Enable Debug mode in Jboss log

Document ID : KB000039371
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:

Jboss usually does not contain debug level log. But under some circumstance, full trace info is required to investigate what is happening in what order. In such enable debug log is essential for troubleshooting the issue since it contain more details.

This article describes how to enable debug log in JBoss.

 

Question:

How to enable JBoss debug log in general.

 

Environment:

Jboss Application Server:4.2.3 GA

 

Answer:

Perform follow steps to enable debug mode for jboss log.

1.Open the jboss-log4j.xml file in the <JBossDir>/server/default/conf  directory

2.Search for <appender name=”FILE” class=”org.jboss.logging.appender.DailyRollingFileAppender”>, there is Thread parameter right below like <param name=”Thredshold” value=”INFO”>

3.Change value from INFO to DEBUG.

4.Shut down JBoss and remove directories <JBossDir>/server/default/tmp and <JBossDir>/server/default/work.

5.Restart the JBoss.