The logger is responsible for capturing the message to be logged along with certain metadata and passing it to the logging framework. After receiving the message, the framework calls the formatter with the message. The formatter formats it for output. The framework then hands the formatted message to the appropriate appender for disposition.
Activiti uses the SLF4J logging framework. To use the SLF4J logging framework in Activiti, we need to add
SFL4J-binding.jar to our project. By default, Activiti uses NOP-logger; it will not log anything other than a warning.
To add the
log4j12 dependency to Maven, open your Activiti project and add the following code to the
<dependency> <groupId>org.slf4j</groupId> ...