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 16:06:15 UTC

[logging-log4j2] branch master updated (f914a38 -> 91a0c58)

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

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


    from f914a38  Log4j 1.2 bridge method Category.exists(String) should be static.
     new a27914b  Log4j 1.2 bridge method org.apache.log4j.Category.getDefaultHierarchy() is missing.
     new 91a0c58  Log4j 1.2 bridge method org.apache.log4j.Category.getDefaultHierarchy() is missing.

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 | 13 +++++++++++++
 src/changes/changes.xml                                    |  3 +++
 2 files changed, 16 insertions(+)

[logging-log4j2] 01/02: Log4j 1.2 bridge method org.apache.log4j.Category.getDefaultHierarchy() is missing.

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

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

commit a27914bfa691dcd600f9db6cf551fcae016b3e49
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 11:04:51 2021 -0500

    Log4j 1.2 bridge method org.apache.log4j.Category.getDefaultHierarchy()
    is missing.
---
 log4j-1.2-api/src/main/java/org/apache/log4j/Category.java | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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 8674e61..ef913ae 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
@@ -29,6 +29,7 @@ import org.apache.log4j.or.ObjectRenderer;
 import org.apache.log4j.or.RendererSupport;
 import org.apache.log4j.spi.AppenderAttachable;
 import org.apache.log4j.spi.LoggerFactory;
+import org.apache.log4j.spi.LoggerRepository;
 import org.apache.log4j.spi.LoggingEvent;
 import org.apache.logging.log4j.message.MapMessage;
 import org.apache.logging.log4j.message.SimpleMessage;
@@ -193,6 +194,18 @@ public class Category implements AppenderAttachable {
         return LogManager.getCurrentLoggers();
     }
 
+    /**
+     * Gets the default LoggerRepository instance.
+     *
+     * @return the default LoggerRepository instance.
+     * @deprecated Please use {@link LogManager#getLoggerRepository()} instead.
+     * @since 1.0
+     */
+    @Deprecated
+    public static LoggerRepository getDefaultHierarchy() {
+        return LogManager.getLoggerRepository();
+    }
+
     public final Level getEffectiveLevel() {
         switch (logger.getLevel().getStandardLevel()) {
         case ALL:

[logging-log4j2] 02/02: Log4j 1.2 bridge method org.apache.log4j.Category.getDefaultHierarchy() is missing.

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

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

commit 91a0c58afee83fae14abdb47ad4df43375e3bfde
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 11:06:13 2021 -0500

    Log4j 1.2 bridge method org.apache.log4j.Category.getDefaultHierarchy()
    is missing.
---
 src/changes/changes.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 6d4601d..4ee0b72 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -197,6 +197,9 @@
       <action dev="ggregory" type="fix">
         Log4j 1.2 bridge method Category.exists(String) should be static.
       </action>
+      <action dev="ggregory" type="fix">
+        Log4j 1.2 bridge method org.apache.log4j.Category.getDefaultHierarchy() is missing.
+      </action>
     </release>
     <release version="2.17.1" date="2021-MM-DD" description="GA Release 2.17.1">
       <action issue="LOG4J2-3292" dev="ckozak" type="fix">