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 2017/09/02 23:00:01 UTC

logging-log4j2 git commit: [LOG4J2-2029] Marker examples should not use deprecate flow APIs.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master a7e4f5423 -> e5c8122bc


[LOG4J2-2029] Marker examples should not use deprecate flow APIs.

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

Branch: refs/heads/master
Commit: e5c8122bc3c98d374c453622cccae58227c625e3
Parents: a7e4f54
Author: Fabrizio Cucci <no...@github.com>
Authored: Sat Sep 2 16:59:48 2017 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sat Sep 2 16:59:48 2017 -0600

----------------------------------------------------------------------
 src/changes/changes.xml          |  3 +++
 src/site/xdoc/manual/markers.xml | 15 ++++++++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e5c8122b/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index e372018..6e3669f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -37,6 +37,9 @@
       <action issue="LOG4J2-2026" dev="ggregory" type="fix" due-to="Leon Finker">
         java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature().
       </action>
+      <action issue="LOG4J2-2029" dev="ggregory" type="fix" due-to="Fabrizio Cucci">
+        Marker examples should not use deprecate flow APIs.
+      </action>
     </release>
     <release version="2.9.0" date="2017-08-26" description="GA Release 2.9.0">
       <action issue="LOG4J2-1928" dev="rgoers" type="update">

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e5c8122b/src/site/xdoc/manual/markers.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/manual/markers.xml b/src/site/xdoc/manual/markers.xml
index e9bd6ef..145eb97 100644
--- a/src/site/xdoc/manual/markers.xml
+++ b/src/site/xdoc/manual/markers.xml
@@ -50,20 +50,25 @@ public class MyApp {
     private static final Marker QUERY_MARKER = MarkerManager.getMarker("SQL_QUERY").setParents(SQL_MARKER);
 
     public String doQuery(String table) {
-        logger.entry(param);
+        logger.traceEntry();
 
         logger.debug(QUERY_MARKER, "SELECT * FROM {}", table);
 
-        return logger.exit();
+        String result = ... 
+
+        return logger.traceExit(result);
     }
 
     public String doUpdate(String table, Map<String, String> params) {
-        logger.entry(param);
+        logger.traceEntry();
 
         if (logger.isDebugEnabled()) {
-          logger.debug(UPDATE_MARKER, "UPDATE {} SET {}", table, formatCols());
+            logger.debug(UPDATE_MARKER, "UPDATE {} SET {}", table, formatCols());
+        }
+	
+        String result = ... 
 
-        return logger.exit();
+        return logger.traceExit(result);
     }
 
     private String formatCols(Map<String, String> cols) {