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 2021/12/30 13:42:47 UTC

[logging-log4j2] branch release-2.x updated (62b1074 -> b82a183)

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

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


    from 62b1074  Log4j 1.2 bridge class ConsoleAppender should extend WriterAppender and provide better compatibility with custom appenders.
     new 8c71bcd  Log4j 1.2 bridge class PatternLayout is missing constants DEFAULT_CONVERSION_PATTERN and TTCC_CONVERSION_PATTERN.
     new b82a183  Log4j 1.2 bridge class PatternLayout is missing constants DEFAULT_CONVERSION_PATTERN and TTCC_CONVERSION_PATTERN.

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/main/java/org/apache/log4j/PatternLayout.java         | 11 +++++++++++
 src/changes/changes.xml                                       |  3 +++
 2 files changed, 14 insertions(+)

[logging-log4j2] 02/02: Log4j 1.2 bridge class PatternLayout is missing constants DEFAULT_CONVERSION_PATTERN and TTCC_CONVERSION_PATTERN.

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

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

commit b82a183d633f629942edba658c7e9f6df5aa62a1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 08:42:44 2021 -0500

    Log4j 1.2 bridge class PatternLayout is missing constants
    DEFAULT_CONVERSION_PATTERN and TTCC_CONVERSION_PATTERN.
---
 src/changes/changes.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 441192f..c258b5f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -37,6 +37,9 @@
       <action dev="ggregory" type="fix">
         Log4j 1.2 bridge method NDC.inherit(Stack) should not use generics to provide source compatibility.
       </action>
+      <action dev="ggregory" type="fix">
+        Log4j 1.2 bridge class PatternLayout is missing constants DEFAULT_CONVERSION_PATTERN and TTCC_CONVERSION_PATTERN.
+      </action>
 	</release>
     <release version="2.17.1" date="2021-12-27" description="GA Release 2.17.1">
       <!-- FIXES -->

[logging-log4j2] 01/02: Log4j 1.2 bridge class PatternLayout is missing constants DEFAULT_CONVERSION_PATTERN and TTCC_CONVERSION_PATTERN.

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

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

commit 8c71bcd66ea2b7454c42fd3cc2fab89d52af828e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 08:42:35 2021 -0500

    Log4j 1.2 bridge class PatternLayout is missing constants
    DEFAULT_CONVERSION_PATTERN and TTCC_CONVERSION_PATTERN.
---
 .../src/main/java/org/apache/log4j/PatternLayout.java         | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/PatternLayout.java b/log4j-1.2-api/src/main/java/org/apache/log4j/PatternLayout.java
index c2e1251..75c5e62 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/PatternLayout.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/PatternLayout.java
@@ -24,6 +24,17 @@ import org.apache.logging.log4j.util.Strings;
  */
 public class PatternLayout extends Layout {
 
+    /**
+     * Default pattern string for log output. Currently set to the string <b>{@value #DEFAULT_CONVERSION_PATTERN}</b> which
+     * just prints the application supplied message.
+     */
+    public final static String DEFAULT_CONVERSION_PATTERN = "%m%n";
+
+    /**
+     * A conversion pattern equivalent to the TTCCCLayout. Current value is <b>{@value #TTCC_CONVERSION_PATTERN}</b>
+     */
+    public final static String TTCC_CONVERSION_PATTERN = "%r [%t] %p %c %x - %m%n";
+
     public PatternLayout(final String pattern) {
 
     }