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 14:56:58 UTC
[logging-log4j2] branch master updated (10ad9c6 -> 63e03be)
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 10ad9c6 Log4j 1.2 bridge class OptionConverter is missing selectAndConfigure() methods.
new cb5672e Log4j 1.2 bridge class Category should implement AppenderAttachable.
new 63e03be Log4j 1.2 bridge class Category should implement AppenderAttachable.
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 | 10 +++++++++-
src/changes/changes.xml | 3 +++
2 files changed, 12 insertions(+), 1 deletion(-)
[logging-log4j2] 01/02: Log4j 1.2 bridge class Category should implement AppenderAttachable.
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 cb5672ef0fee7380c1b57ebbd832f99663b7a37f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 09:55:04 2021 -0500
Log4j 1.2 bridge class Category should implement AppenderAttachable.
---
log4j-1.2-api/src/main/java/org/apache/log4j/Category.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
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 c8a949f..c4c0ac0 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
@@ -27,6 +27,7 @@ import org.apache.log4j.helpers.NullEnumeration;
import org.apache.log4j.legacy.core.CategoryUtil;
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.LoggingEvent;
import org.apache.logging.log4j.message.MapMessage;
@@ -43,7 +44,7 @@ import org.apache.logging.log4j.util.Strings;
/**
* Implementation of the Category class for compatibility, despite it having been deprecated a long, long time ago.
*/
-public class Category {
+public class Category implements AppenderAttachable {
private static final PrivateAdapter adapter = new PrivateAdapter();
@@ -325,6 +326,7 @@ public class Category {
* No-op implementation.
* @param appender The Appender to add.
*/
+ @Override
public void addAppender(final Appender appender) {
}
@@ -335,6 +337,7 @@ public class Category {
public void callAppenders(final LoggingEvent event) {
}
+ @Override
@SuppressWarnings("rawtypes")
public Enumeration getAllAppenders() {
return NullEnumeration.getInstance();
@@ -345,6 +348,7 @@ public class Category {
* @param name The name of the Appender.
* @return null.
*/
+ @Override
public Appender getAppender(final String name) {
return null;
}
@@ -354,6 +358,7 @@ public class Category {
* @param appender The Appender to add.
* @return true if the appender is attached.
*/
+ @Override
public boolean isAttached(final Appender appender) {
return false;
}
@@ -361,6 +366,7 @@ public class Category {
/**
* No-op implementation.
*/
+ @Override
public void removeAllAppenders() {
}
@@ -368,6 +374,7 @@ public class Category {
* No-op implementation.
* @param appender The Appender to remove.
*/
+ @Override
public void removeAppender(final Appender appender) {
}
@@ -375,6 +382,7 @@ public class Category {
* No-op implementation.
* @param name The Appender to remove.
*/
+ @Override
public void removeAppender(final String name) {
}
[logging-log4j2] 02/02: Log4j 1.2 bridge class Category should implement AppenderAttachable.
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 63e03beb60b363e665cbcbefdb2581ce30905d4c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 09:56:55 2021 -0500
Log4j 1.2 bridge class Category should implement AppenderAttachable.
---
src/changes/changes.xml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1bfda06..54aec9c 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -191,6 +191,9 @@
<action dev="ggregory" type="fix">
Log4j 1.2 bridge class OptionConverter is missing selectAndConfigure() methods.
</action>
+ <action dev="ggregory" type="fix">
+ Log4j 1.2 bridge class Category should implement AppenderAttachable.
+ </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">