Setting ThreadContext for all threads in application
<p>From this answer <a href="https://stackoverflow.com/a/25125159/4367326">https://stackoverflow.com/a/25125159/4367326</a> I have <code>routingAppender</code> working but I want to set the <code>ThreadContext</code> for every thread in the program. </p>

<p>When I set          </p>

<pre><code>ThreadContext.put("logFileName", "TestLogFile");
</code></pre>

<p>it works for the main thread and logs as expected but not for any other threads in my application. How can I achieve this?</p>