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:58:18 UTC

[logging-log4j2] branch master updated (84b3082 -> d3c9a3e)

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 84b3082  Javadoc cleanup.
     new bada2b7  Log4j 1.2 bridge adds org.apache.log4j.spi.DefaultRepositorySelector.
     new d3c9a3e  Log4j 1.2 bridge adds org.apache.log4j.spi.DefaultRepositorySelector.

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:
 .../DefaultRepositorySelector.java}                         | 13 +++++++------
 src/changes/changes.xml                                     |  3 +++
 2 files changed, 10 insertions(+), 6 deletions(-)
 copy log4j-1.2-api/src/main/java/org/apache/log4j/{DefaultCategoryFactory.java => spi/DefaultRepositorySelector.java} (71%)

[logging-log4j2] 01/02: Log4j 1.2 bridge adds org.apache.log4j.spi.DefaultRepositorySelector.

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 bada2b7252e0da7c8fd575f6e7f4d7ee988c4049
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jan 7 10:56:25 2022 -0500

    Log4j 1.2 bridge adds org.apache.log4j.spi.DefaultRepositorySelector.
---
 .../log4j/spi/DefaultRepositorySelector.java       | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/DefaultRepositorySelector.java b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/DefaultRepositorySelector.java
new file mode 100644
index 0000000..e431373
--- /dev/null
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/DefaultRepositorySelector.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.log4j.spi;
+
+public class DefaultRepositorySelector implements RepositorySelector {
+
+    final LoggerRepository repository;
+
+    public DefaultRepositorySelector(final LoggerRepository repository) {
+        this.repository = repository;
+    }
+
+    @Override
+    public LoggerRepository getLoggerRepository() {
+        return repository;
+    }
+}

[logging-log4j2] 02/02: Log4j 1.2 bridge adds org.apache.log4j.spi.DefaultRepositorySelector.

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 d3c9a3e3f7188ec2319b9a539cdfceeffb7b6bb3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jan 7 10:58:15 2022 -0500

    Log4j 1.2 bridge adds org.apache.log4j.spi.DefaultRepositorySelector.
---
 src/changes/changes.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index e7cd8a7..07e5d49 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -248,6 +248,9 @@
       <action dev="ggregory" type="fix">
         Log4j 1.2 bridge adds org.apache.log4j.spi.NOPLoggerRepository and NOPLogger.
       </action>
+      <action dev="ggregory" type="fix">
+        Log4j 1.2 bridge adds org.apache.log4j.spi.DefaultRepositorySelector.
+      </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">