Run code on thread start

Hi,

I would like to add workflow/activity info into the logback MDC. Ideally, I would intercept the thread creation and add the keys with the workflow id, activity id, etc.

Is this possible? Maybe with interceptors?

Thanks!

Yes, it can be done through interceptors. But I believe these are already injected into MDC.