LOG4J2-2109 Fix configuration property name
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/69ddd6f9 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/69ddd6f9 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/69ddd6f9 Branch: refs/heads/master Commit: 69ddd6f9f64647ae33fb63e85d57acff66e1fd45 Parents: 163eafd Author: Mikael Ståldal <mik...@staldal.nu> Authored: Sun Nov 12 15:33:12 2017 +0100 Committer: Mikael Ståldal <mik...@staldal.nu> Committed: Sun Nov 12 15:33:12 2017 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/logging/log4j/core/util/Constants.java | 2 +- src/site/xdoc/manual/configuration.xml.vm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/69ddd6f9/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java ---------------------------------------------------------------------- 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 ef30491..fa01c13 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 @@ -61,7 +61,7 @@ public final class Constants { * @since 2.10 */ public static final boolean FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS = PropertiesUtil.getProperties().getBooleanProperty( - "log4j.formatMsgNoLookups", false); + "log4j2.formatMsgNoLookups", false); /** * {@code true} if we think we are running in a web container, based on the boolean value of system property http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/69ddd6f9/src/site/xdoc/manual/configuration.xml.vm ---------------------------------------------------------------------- diff --git a/src/site/xdoc/manual/configuration.xml.vm b/src/site/xdoc/manual/configuration.xml.vm index e3042f4..3367d2c 100644 --- a/src/site/xdoc/manual/configuration.xml.vm +++ b/src/site/xdoc/manual/configuration.xml.vm @@ -2232,9 +2232,9 @@ public class AwesomeTest { when the LoggerContext is started. For debug purposes.</td> </tr> <tr> - <td><a name="formatMsgNoLookups"/>log4j.formatMsgNoLookups</td> + <td><a name="formatMsgNoLookups"/>log4j2.formatMsgNoLookups</td> <td>FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS</td> - <td><a name="log4j.formatMsgNoLookups" />log4j.formatMsgNoLookups</td> + <td><a name="log4j2.formatMsgNoLookups" />log4j2.formatMsgNoLookups</td> <td>false</td> <td>Disables message pattern lookups globally when set to <tt>true</tt>. This is equivalent to defining all message patterns using <tt>%m{nolookups}</tt>.</td>