You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Emeric Vernat (Jira)" <ji...@apache.org> on 2019/09/23 14:59:00 UTC
[jira] [Created] (LOG4J2-2698) ThreadContext.clear() from doc does
not exist
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)