You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2021/12/14 13:03:38 UTC

[logging-log4j2] branch log4j-2.12 updated: Deprecate org.apache.logging.log4j.core.util.Constants.FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS like in release-2.x.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch log4j-2.12
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/log4j-2.12 by this push:
     new 13906d2  Deprecate org.apache.logging.log4j.core.util.Constants.FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS like in release-2.x.
13906d2 is described below

commit 13906d25e3c744c3e5811da1292a693ad71ed0b1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Dec 14 08:02:13 2021 -0500

    Deprecate
    org.apache.logging.log4j.core.util.Constants.FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS
    like in release-2.x.
---
 .../src/main/java/org/apache/logging/log4j/core/util/Constants.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java
index fa01c13..fcb848b 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java
@@ -59,7 +59,9 @@ public final class Constants {
      * <pre>%m{nolookups}</pre> is configured.
      *
      * @since 2.10
+     * @deprecated Since 2.12.2
      */
+    @Deprecated
     public static final boolean FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS = PropertiesUtil.getProperties().getBooleanProperty(
             "log4j2.formatMsgNoLookups", false);