according to the Log4j documentation I can call
ThreadContext.clear();
but in my IDE I do not get clear()
as an available method and I also get compilation errors, I only see clearAll(), etc., why? What is missing on the classpath?
Log4j Version 2.16.0 is used.
Advertisement
Answer
As per https://svn.apache.org/viewvc?view=revision&revision=1594389, the clear()
method is replaced with clearMap()
(it was already deprecated when it was removed).