Re: Log4j2 ThreadContext for child threads

2016-04-27 Thread Benjamin Jaton
That's awesome! I didn't know about http://docs.oracle.com/javase/6/docs/api/java/lang/InheritableThreadLocal.html Thanks Remko On Tue, Apr 26, 2016 at 5:12 PM, Remko Popma wrote: > There you go! It's documented near the bottom of the manual page: > > http://logging.apache.org/log4j/2.x/manual/

What pattern or feature would you use to pass along the MDC between worker threads?

2016-04-27 Thread Matt Sicker
Is there any way to do this without manually passing along the context map manually? These threads may be in a thread pool and execute asynchronous callbacks, so I don't think using inheritable thread locals will help. I can provide more details on framework usage and whatnot if it helps. -- Mat