O'Reilly logo

Activiti 5.x Business Process Management Beginner's Guide by Irshad Mansuri, Dr. Zakir Laliwala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – the logging configuration

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 pom.xml file:

<dependency> <groupId>org.slf4j</groupId> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required