Repository: logging-log4j2
Updated Branches:
  refs/heads/master 26a8e2aae -> 8554250a5


[LOG4J2-1015] Add a way to route messages based on the %marker in Layout
for RoutingAppender. To discuss: The configuration calls for
"$${marker:}" as opposed to "$${marker}" which is not obvious or pretty,
it's just the way variable substitutions work ATM.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/8554250a
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/8554250a
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/8554250a

Branch: refs/heads/master
Commit: 8554250a5f94a856214dae445652a6caffcc48e2
Parents: 26a8e2a
Author: Gary Gregory <[email protected]>
Authored: Tue May 19 08:19:52 2015 -0700
Committer: Gary Gregory <[email protected]>
Committed: Tue May 19 08:19:52 2015 -0700

----------------------------------------------------------------------
 src/site/xdoc/manual/lookups.xml | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/8554250a/src/site/xdoc/manual/lookups.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/lookups.xml b/src/site/xdoc/manual/lookups.xml
index 6d8c6a0..4991945 100644
--- a/src/site/xdoc/manual/lookups.xml
+++ b/src/site/xdoc/manual/lookups.xml
@@ -361,6 +361,11 @@ logger.info(PERFORMANCE, "Message in 
Performance.log");]]></pre>
             each with a log event for a specific marker. Log4j will route the 
log event with the <code>SQL</code> marker to
             <code>sql.log</code>, the log event with the <code>PAYLOAD</code> 
marker to <code>payload.log</code>, and so on.
           </p>
+          <p>
+            You can use the notation <code>"${marker:name}"</code> and 
<code>"$${marker:name}"</code> to check for the 
+            existence of a marker where <code>name</code> is the marker name. 
If the marker exists, the expression returns 
+            the name, otherwise <code>null</code>. 
+          </p>
         </subsection>        
         <a name="StructuredDataLookup"/>
         <subsection name="Structured Data Lookup">

Reply via email to