Emeric Vernat created LOG4J2-2698:
-------------------------------------

             Summary: ThreadContext.clear() from doc does not exist
                 Key: LOG4J2-2698
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2698
             Project: Log4j 2
          Issue Type: Documentation
          Components: Documentation
            Reporter: Emeric Vernat


The [thread-context 
doc|https://logging.apache.org/log4j/2.x/manual/thread-context.html] shows an 
example with ThreadContext.clear().
But there is no method clear() in ThreadContext as can be seen in the 
[ThreadContext 
javadoc|https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/ThreadContext.html#clear--].

Should it be ThreadContext.clearMap() or ThreadContext.clearAll() instead?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to