How to insert process definition key on the Camunda logs?


#1

Using logback + MDC on my external worker apps, I insert process name to my logs something like this:
MDC.put(“process.key”, externalTask.getProcessDefinitionKey());

How can I do the same on the camunda logs, such that it’s visible which process the log came from?

TIA.


#2

Hi @SuwekongHilaw
maybe it can help you https://docs.camunda.org/manual/latest/user-guide/logging/#example-using-logback