Enabling logs in Camunda


I want to enable logs in camunda in tomcat or wildfly in specific pattern using logback.xml.

I have put logback-classic-1.1.2.jar , logback-core-1.1.2.jar in tomcat/lib and camunda-webapp/lib and engine-rest/lib and put the logabck.xml in WEB-INF/classes of both camunda and engine-rest webapp.

I am getting the logs of camunda in catalina.out but not in the pattern i mentioned in logback.xml.

Logback.xml is below:

Please let me know if I need to include something more.

<?xml version="1.0" encoding="UTF-8"?>
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <pattern>{"type":"${TYPE}", "host":"${HOST}", "level":"%replace(%level){TRACE,DEBUG}", "neid":"${NEID}", "system":"${SYSTEM}", "time":"%d{yyyy-MM-dd'T'HH:mm:ss.SSS'Z', UTC}", "timezone":"${TIMEZONE}", "log":"%msg"}%n</pattern>

    <!-- Send debug/info messages to a file-->
    <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
    <pattern>{"type":"${TYPE}", "host":"${HOST}", "level":"%replace(%level){TRACE,DEBUG}", "neid":"${NEID}", "system":"${SYSTEM}", "time":"%d{yyyy-MM-dd'T'HH:mm:ss.SSS'Z', UTC}", "timezone":"${TIMEZONE}", "log":"%msg"}%n</pattern>

    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">

    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
    <root level="DEBUG">
    <appender-ref ref="STDOUT" />
    <appender-ref ref="FILE" />


Hi Durga,

What about the logback dependency?, please check

Best regards,

Hi Yana,

I did the same.

I have added logback.xml in camunda.war in WEB-INF/classes and added logback jars in WEB-INF/lib and jboss-deployment-structure.xml in META-INF.

Content of jboss-deployment:

  <module name="org.apache.commons.logging" />
  <module name="org.apache.log4j" />
  <module name="org.jboss.logging" />
  <module name="org.jboss.logging.jul-to-slf4j-stub" />
  <module name="org.jboss.logmanager" />
  <module name="org.jboss.logmanager.log4j" />
  <module name="org.slf4j" />
  <module name="org.slf4j.impl" />

The same configurations works for tomcat but not in Jboss EAP or Wildfly.

Could you please let me know what more needs to be done.


If you figure out the pattern, can you share it in: Camunda JSON Logging for shared engine: solved! so we can add it


Can someone kindly provide an update.