Chapter 88. Configuring a logging utility in the decision engine
The decision engine uses the Java logging API SLF4J for system logging. You can use one of the following logging utilities with the decision engine to investigate decision engine activity, such as for troubleshooting or data gathering:
- Logback
- Apache Commons Logging
- Apache Log4j
-
java.util.loggingpackage
Procedure
For the logging utility that you want to use, add the relevant dependency to your Maven project or save the relevant XML configuration file in the org.drools package of your Red Hat Process Automation Manager distribution:
Example Maven dependency for Logback
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
Example logback.xml configuration file in org.drools package
<configuration> <logger name="org.drools" level="debug"/> ... <configuration>
<configuration>
<logger name="org.drools" level="debug"/>
...
<configuration>
Example log4j.xml configuration file in org.drools package
If you are developing for an ultra light environment, use the slf4j-nop or slf4j-simple logger.