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:16:06 UTC
[logging-log4j2] branch release-2.x updated (3cd08e2 -> 4d3a151)
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 3cd08e2 Format Javadoc.
new 1896e22 Log4j 1.2 bridge class PropertyConfigurator should implement Configurator.
new 4d3a151 Log4j 1.2 bridge class PropertyConfigurator should implement Configurator.
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/PropertyConfigurator.java | 5 ++++-
.../src/main/java/org/apache/log4j/spi/Configurator.java | 11 +++++------
src/changes/changes.xml | 6 ++++++
3 files changed, 15 insertions(+), 7 deletions(-)
[logging-log4j2] 01/02: Log4j 1.2 bridge class PropertyConfigurator should implement Configurator.
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 1896e228bcb9fe158d65e4abd8827a74e4566ac6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 09:15:34 2021 -0500
Log4j 1.2 bridge class PropertyConfigurator should implement
Configurator.
Log4j 1.2 bridge interface Configurator doConfigure() methods should use
LoggerRepository, not LoggerContext.
---
.../src/main/java/org/apache/log4j/PropertyConfigurator.java | 5 ++++-
.../src/main/java/org/apache/log4j/spi/Configurator.java | 11 +++++------
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/PropertyConfigurator.java b/log4j-1.2-api/src/main/java/org/apache/log4j/PropertyConfigurator.java
index 8f6ead4..808220a 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/PropertyConfigurator.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/PropertyConfigurator.java
@@ -20,12 +20,13 @@ import java.io.InputStream;
import java.net.URL;
import java.util.Properties;
+import org.apache.log4j.spi.Configurator;
import org.apache.log4j.spi.LoggerRepository;
/**
* A configurator for properties.
*/
-public class PropertyConfigurator {
+public class PropertyConfigurator implements Configurator {
/**
* Reads configuration options from an InputStream.
@@ -91,6 +92,7 @@ public class PropertyConfigurator {
* @param inputStream The input stream
* @param hierarchy The hierarchy
*/
+ @Override
public void doConfigure(final InputStream inputStream, final LoggerRepository hierarchy) {
}
@@ -121,6 +123,7 @@ public class PropertyConfigurator {
* @param configURL The configuration URL
* @param hierarchy The hierarchy
*/
+ @Override
public void doConfigure(final URL configURL, final LoggerRepository hierarchy) {
}
}
diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/Configurator.java b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/Configurator.java
index 0305fe4..15b9c6e 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/Configurator.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/Configurator.java
@@ -19,8 +19,6 @@ package org.apache.log4j.spi;
import java.io.InputStream;
import java.net.URL;
-import org.apache.logging.log4j.core.LoggerContext;
-
/**
* Log4j 1.x Configurator interface.
*/
@@ -38,17 +36,17 @@ public interface Configurator {
*/
public static final String NULL = "null";
-
/**
* Interpret a resource pointed by a InputStream and set up log4j accordingly.
*
* The configuration is done relative to the <code>hierarchy</code> parameter.
*
* @param inputStream The InputStream to parse
- *
+ * @param loggerRepository The hierarchy to operation upon.
+ *
* @since 1.2.17
*/
- void doConfigure(InputStream inputStream, final LoggerContext loggerContext);
+ void doConfigure(InputStream inputStream, final LoggerRepository loggerRepository);
/**
* Interpret a resource pointed by a URL and set up log4j accordingly.
@@ -56,6 +54,7 @@ public interface Configurator {
* The configuration is done relative to the <code>hierarchy</code> parameter.
*
* @param url The URL to parse
+ * @param loggerRepository The hierarchy to operation upon.
*/
- void doConfigure(URL url, final LoggerContext loggerContext);
+ void doConfigure(URL url, final LoggerRepository loggerRepository);
}
[logging-log4j2] 02/02: Log4j 1.2 bridge class PropertyConfigurator should implement Configurator.
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 4d3a151d23251aa59d0c22b3d0611789a787d1c9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 30 09:16:04 2021 -0500
Log4j 1.2 bridge class PropertyConfigurator should implement
Configurator.
---
src/changes/changes.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c258b5f..daf8a01 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -40,6 +40,12 @@
<action dev="ggregory" type="fix">
Log4j 1.2 bridge class PatternLayout is missing constants DEFAULT_CONVERSION_PATTERN and TTCC_CONVERSION_PATTERN.
</action>
+ <action dev="ggregory" type="fix">
+ Log4j 1.2 bridge class PropertyConfigurator should implement Configurator.
+ </action>
+ <action dev="ggregory" type="fix">
+ Log4j 1.2 bridge interface Configurator doConfigure() methods should use LoggerRepository, not LoggerContext.
+ </action>
</release>
<release version="2.17.1" date="2021-12-27" description="GA Release 2.17.1">
<!-- FIXES -->