You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2018/11/23 22:29:06 UTC

[logging-log4j2] branch release-2.x updated (87053e6 -> 421aa02)

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

rgoers pushed a change to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git.


    from 87053e6  Format nits.
     new 82f464f  Fixed Appenders section in Extending Log4j
     new 421aa02  LOG4J2-1571 - Add CDATA

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/changes/changes.xml            |  3 +++
 src/site/xdoc/manual/extending.xml | 18 +++++++++++-------
 2 files changed, 14 insertions(+), 7 deletions(-)


[logging-log4j2] 01/02: Fixed Appenders section in Extending Log4j

Posted by rg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 82f464f67860020892fa3b99b180cba873df6a1c
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Fri Nov 23 14:37:56 2018 -0700

    Fixed Appenders section in Extending Log4j
---
 src/changes/changes.xml            |  3 +++
 src/site/xdoc/manual/extending.xml | 14 +++++++++-----
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 2c5bcb8..25fbba5 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -31,6 +31,9 @@
          - "remove" - Removed
     -->
     <release version="2.11.2" date="2018-MM-DD" description="GA Release 2.11.2">
+      <action issue="LOG4J2-1571" dev="rgoers" type="fix" due-to="torbenmoeller">
+        Fixed Appenders section in Extending Log4j.
+      </action>
       <action issue="LOG4J2-2391" dev="ckozak" type="update">
         Improve exception logging performance. ThrowableProxy construction uses a more faster
         method to discover the current stack trace. ThrowablePatternConverter and
diff --git a/src/site/xdoc/manual/extending.xml b/src/site/xdoc/manual/extending.xml
index ee0dd01..2ac3a46 100644
--- a/src/site/xdoc/manual/extending.xml
+++ b/src/site/xdoc/manual/extending.xml
@@ -320,10 +320,14 @@ public final class ThresholdFilter extends AbstractFilter {
             </p>
             <pre class="prettyprint linenums">
 @Plugin(name = "Stub", category = "Core", elementType = "appender", printObject = true)
-public final class StubAppender extends OutputStreamAppender {
-
-    private StubAppender(String name, Layout layout, Filter filter, StubManager manager,
-                         boolean ignoreExceptions) {
+public final class StubAppender extends AbstractOutputStreamAppender<StubManager> {
+
+    private StubAppender(String name,
+                         Layout<? extends Serializable> layout,
+                         Filter filter,
+                         boolean ignoreExceptions,
+                         StubManager  manager) {
+        super(name, layout, filter, ignoreExceptions, true, manager);
     }
 
     @PluginFactory
@@ -344,7 +348,7 @@ public final class StubAppender extends OutputStreamAppender {
         if (layout == null) {
             layout = PatternLayout.createDefaultLayout();
         }
-        return new StubAppender(name, layout, filter, manager, ignoreExceptions);
+        return new StubAppender(name, layout, filter, ignoreExceptions, manager);
     }
 }</pre>
           </subsection>


[logging-log4j2] 02/02: LOG4J2-1571 - Add CDATA

Posted by rg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 421aa02334f10f26d95f0fd177b6fad417bfe21a
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Fri Nov 23 15:28:56 2018 -0700

    LOG4J2-1571 - Add CDATA
---
 src/site/xdoc/manual/extending.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/site/xdoc/manual/extending.xml b/src/site/xdoc/manual/extending.xml
index 2ac3a46..0f1fe27 100644
--- a/src/site/xdoc/manual/extending.xml
+++ b/src/site/xdoc/manual/extending.xml
@@ -318,7 +318,7 @@ public final class ThresholdFilter extends AbstractFilter {
               new one. This insures that events are not lost while a reconfiguration is taking place without
               requiring that logging pause while the reconfiguration takes place.
             </p>
-            <pre class="prettyprint linenums">
+            <pre class="prettyprint linenums"><![CDATA[
 @Plugin(name = "Stub", category = "Core", elementType = "appender", printObject = true)
 public final class StubAppender extends AbstractOutputStreamAppender<StubManager> {
 
@@ -350,7 +350,7 @@ public final class StubAppender extends AbstractOutputStreamAppender<StubManager
         }
         return new StubAppender(name, layout, filter, ignoreExceptions, manager);
     }
-}</pre>
+}]]></pre>
           </subsection>
           <subsection name="Layouts">
             <p>