This is an automated email from the ASF dual-hosted git repository. ckozak pushed a commit to branch release-2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 8b0fff5bbff36c90b10944b7503bc66733a5496f Author: Remko Popma <[email protected]> AuthorDate: Sat Dec 18 09:37:40 2021 +0900 [DOC] update JndiContextSelector javadoc; mention property `enableJndiContextSelector` --- .../java/org/apache/logging/log4j/core/selector/JndiContextSelector.java | 1 + 1 file changed, 1 insertion(+) diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java index a4df310..cfa3532 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/selector/JndiContextSelector.java @@ -41,6 +41,7 @@ import org.apache.logging.log4j.status.StatusLogger; * context to look up the value of the entry. The logging context of the web-application will depend on the value the * env-entry. The JNDI context which is looked up by this class is <code>java:comp/env/log4j/context-name</code>. * + * <p>For security reasons, JNDI must be enabled by setting system property <code>log4j2.enableJndiContextSelector=true</code>.</p> * <p> * Here is an example of an <code>env-entry</code>: * </p>
