You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/03/22 12:55:55 UTC
[31/41] logging-log4j2 git commit: LOG4J2-1322 - Update Log4j 1.x
migration guide to include information about system property lookup syntax
changes
LOG4J2-1322 - Update Log4j 1.x migration guide to include information about system property lookup syntax changes
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/63d69aed
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/63d69aed
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/63d69aed
Branch: refs/heads/gelf-layout-gc-free
Commit: 63d69aed2a6066835d0303e69a8d639763b8ec27
Parents: 4ee4e28
Author: Matt Sicker <bo...@gmail.com>
Authored: Fri Mar 18 12:31:45 2016 -0500
Committer: Matt Sicker <bo...@gmail.com>
Committed: Fri Mar 18 12:31:45 2016 -0500
----------------------------------------------------------------------
src/changes/changes.xml | 3 +++
src/site/xdoc/manual/migration.xml | 13 +++++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/63d69aed/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 5357d96..cdfabf9 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -220,6 +220,9 @@
<action issue="LOG4J2-1169" dev="mattsicker" type="add" due-to="Gerald Kritzinger">
PatternLayout: Possible variable substitution in equals substitution parameter.
</action>
+ <action issue="LOG4J2-1322" dev="mattsicker" type="update">
+ Update Log4j 1.x migration guide to include information about system property lookup syntax changes.
+ </action>
</release>
<release version="2.5" date="2015-12-06" description="GA Release 2.5">
<action issue="LOG4J2-324" dev="rpopma" type="fix">
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/63d69aed/src/site/xdoc/manual/migration.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/migration.xml b/src/site/xdoc/manual/migration.xml
index 37fe516..4c35c2b 100644
--- a/src/site/xdoc/manual/migration.xml
+++ b/src/site/xdoc/manual/migration.xml
@@ -104,8 +104,17 @@
<subsection name="Configuring Log4j 2">
<p>
Although the Log4j 2 configuration syntax is different than that of Log4j 1.x, most, if not all, of
- the same functionality is available. Below are the example configurations for Log4j 1.x and their
- counterparts in Log4j 2.
+ the same functionality is available.
+ </p>
+ <p>
+ Note that system property interpolation via the <code>${foo}</code> syntax has been extended to allow
+ property lookups from many different sources. See the <a href="lookups.html">Lookups</a> documentation
+ for more details. For example, using a lookup for the system property named <code>catalina.base</code>,
+ in Log4j 1.x, the syntax would be <code>${catalina.base}</code>. In Log4j 2, the syntax would be
+ <code>${sys:catalina.base}</code>.
+ </p>
+ <p>
+ Below are the example configurations for Log4j 1.x and their counterparts in Log4j 2.
</p>
<h4>Sample 1 - Simple configuration using a Console Appender</h4>