Answer the question
In order to leave comments, you need to log in
How to synchronize a static method?
log4j has a static method - MDC.put(); Which allows you to write and then pull out any data in the logging template. I have a multi-threaded application and therefore MDC.put(); overwrites data by another thread. Is there any way to synchronize this method??
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question