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:04:59 UTC

[logging-log4j2] branch release-2.x updated (adc6dd5 -> d46dd94)

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 adc6dd5  Log4j 1.2 bridge method Category.exists(String) should be static.
     new 4a5fd2c  Log4j 1.2 bridge method org.apache.log4j.Category.getDefaultHierarchy() is missing.
     new d46dd94  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] 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 release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit d46dd94a130f476a86cecc650560eb33fe92e1f3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 11:04:56 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 8ea3e92..5e4c29e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -55,6 +55,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-12-27" description="GA Release 2.17.1">
       <!-- FIXES -->

[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 release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 4a5fd2c35dcf8d4941d79281736faf0364f16b6a
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 a6fff4a..8323dcb 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;
@@ -196,6 +197,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: