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 2022/01/07 15:37:25 UTC

[logging-log4j2] branch release-2.x updated (29f5b74 -> 9b824f3)

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 29f5b74  Log4j 1.2 bridge fixes to structure and behave like 1.2.17.
     new 655c079  Log4j 1.2 bridge methods Category.getChainedPriority() and getEffectiveLevel() should not be final.
     new 9b824f3  Log4j 1.2 bridge methods Category.getChainedPriority() and getEffectiveLevel() should not be final.

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:
 log4j-1.2-api/src/main/java/org/apache/log4j/Category.java | 4 ++--
 src/changes/changes.xml                                    | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

[logging-log4j2] 01/02: Log4j 1.2 bridge methods Category.getChainedPriority() and getEffectiveLevel() should not be final.

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 655c079bccdd8d104583beee8e9818c9fd28c148
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jan 7 10:37:14 2022 -0500

    Log4j 1.2 bridge methods Category.getChainedPriority() and
    getEffectiveLevel() should not be final.
---
 log4j-1.2-api/src/main/java/org/apache/log4j/Category.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/Category.java b/log4j-1.2-api/src/main/java/org/apache/log4j/Category.java
index ddcc05c..7d0cb11 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/Category.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/Category.java
@@ -238,7 +238,7 @@ public class Category implements AppenderAttachable {
         return LogManager.getLoggerRepository();
     }
 
-    public final Level getEffectiveLevel() {
+    public Level getEffectiveLevel() {
         switch (logger.getLevel().getStandardLevel()) {
         case ALL:
             return Level.ALL;
@@ -280,7 +280,7 @@ public class Category implements AppenderAttachable {
         return repository;
     }
 
-    public final Priority getChainedPriority() {
+    public Priority getChainedPriority() {
         return getEffectiveLevel();
     }
 

[logging-log4j2] 02/02: Log4j 1.2 bridge methods Category.getChainedPriority() and getEffectiveLevel() should not be final.

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 9b824f306f76274a8d065bdd7a7adfd94daca061
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jan 7 10:37:22 2022 -0500

    Log4j 1.2 bridge methods Category.getChainedPriority() and
    getEffectiveLevel() should not be final.
---
 src/changes/changes.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 4e9d7b6..f58e3d7 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -101,6 +101,9 @@
         Log4j 1.2 bridge adds org.apache.log4j.Hierarchy.
       </action>
       <action dev="ggregory" type="fix">
+        Log4j 1.2 bridge methods Category.getChainedPriority() and getEffectiveLevel() should not be final.
+      </action>
+      <action dev="ggregory" type="fix">
         JndiManager reverts to 2.17.0 behavior: Read the system property for each call.
       </action>
       <!-- ADD -->