SLF4J

Most Camunda modules, including the Camunda engine, use slf4j as logging “facade”. This allows users to direct logging output to the logging “backend” of their choice, such as or log4j.

When installing Camunda as a shared process engine in an application server, Camunda logging is pre-configured.

On all application servers except JBoss and Wildfly, logging is pre-configured using the slf4j-jdk14 bridge.This means that Camunda effectively re-directs all its logging to Java Util Logging.Both SLF4J API and the slf4j-jdk14 bridge are available in a shared classpath which means that they are available in the classpath of all applications deployed on these servers.

On JBoss/Wildfly, logging is directed to the JBoss logging infrastructure. The SLF4J API is not available in the classpath of custom applications by default.

In the following, we provide two alternative examples of how to set up logging. See the for more detailed information on how to add a logging backend.

If you do not care for a specific logging backend, the simplest option is to direct logging to Java Util Logging by adding the followingmaven dependency:

Example Using Logback

For a more sophisticated logging setup we recommend using Logback. To do so, the following steps are necessary:

Add the logback dependency

Also make sure to make mybatis use SLF4J as logger by adding

somewhere in your setup code.

Logging Categories

The process engine logs on the following categories

  • org.camunda.bpm.engine.test
  • org.camunda.bpm.engine.bpmn.parser
  • org.camunda.bpm.engine.bpmn.behavior
  • org.camunda.bpm.engine.cmmn.behavior
  • org.camunda.bpm.engine.cmmn.operation
  • org.camunda.bpm.engine.cmd
  • org.camunda.bpm.engine.persistence
  • org.camunda.bpm.engine.tx
  • org.camunda.bpm.engine.cfg
  • org.camunda.bpm.engine.jobexecutor
  • org.camunda.bpm.engine.context
  • org.camunda.bpm.engine.core
  • org.camunda.bpm.engine.pvm
  • org.camunda.bpm.engine.util
  • org.camunda.bpm.application
  • org.camunda.bpm.container

    Legacy: Java Util Logging

Some Camunda modules still use Java Util Logging directly.The use of Java Util Logging in these modules is considered deprecated and will be gradually migrated to slf4j in future releases.

  • camunda-ejb-service
  • camunda-ejb-client
  • camunda-jobexecutor-ra
  • camunda-jobexecutor-rar
  • camunda-engine-cdi
  • camunda-engine-spring
  • camunda-engine-rest