14.3. Configuring Logging
To configure the logging level of the packages, create a
logback.xml
file in business-central.war/WEB-INF/classes/logback.xml
. To set the logging level of the org.drools
package to "debug" for verbose logging, you would need to add the following line to the file:
<configuration> <logger name="org.drools" level="debug"/> ... <configuration>
Similarly, you can configure logging for packages such as the following:
- org.guvnor
- org.jbpm
- org.kie
- org.slf4j
- org.dashbuilder
- org.uberfire
- org.errai
- etc...
If configuring with
log4j
, the log4j.xml
can be located at business-central.war/WEB-INF/classes/log4j.xml
and can be configured in the following way:
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <category name="org.drools"> <priority value="debug" /> </category> ... </log4j:configuration>
Note
Additional logging can be configured in the individual container. To configure logging for JBoss Enterprise Application Platform, please refer to the Red Hat JBoss Enterprise Application Platform Administration and Configuration Guide.