That would be very useful if logback/slf4j could provide a set of delegates for JDK's ExecutorService.
They should be responsible to handle the MDC propagation between threads:
-
when the job is submitted, save the MDC content
-
when the job is actually executed, restore the MDC content
|