Hi,
I would like to log in different files for the different servlet name that I have in the same JVM.
I try to do it with the use of NDC and Filter on the Appender, I filter on the NDC name.
I push the NDC in the begin of the management of the request and pop at the end.
But the NDC is based on the current thread, and the NDC is not set if a new thread is created or used between the push and the pop. So, log generated at this time can be link to any Servlet name or NDC.
Is there anybody who try to do the samething ? Do you have any idea how to do that ?
The same class can be used in different servlet context with the same log category.
Thanks.
Eric.
