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

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


The following commit(s) were added to refs/heads/master by this push:
     new 134d43364c log4j-to-jul is now a JPMS module
134d43364c is described below

commit 134d43364c20358d0e4ce5467345062022558f86
Author: Ralph Goers <[email protected]>
AuthorDate: Thu Sep 1 02:44:33 2022 -0700

    log4j-to-jul is now a JPMS module
---
 log4j-to-jul/src/main/java/module-info.java        | 24 ++++++++++++++++++
 .../org/apache/logging/log4j/tojul/JULLogger.java  |  2 +-
 log4j-to-jul/src/test/java/module-info.java        | 29 ++++++++++++++++++++++
 .../logging/log4j/tojul/{ => test}/LoggerTest.java |  3 ++-
 4 files changed, 56 insertions(+), 2 deletions(-)

diff --git a/log4j-to-jul/src/main/java/module-info.java 
b/log4j-to-jul/src/main/java/module-info.java
new file mode 100644
index 0000000000..6ad9397a86
--- /dev/null
+++ b/log4j-to-jul/src/main/java/module-info.java
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+module org.apache.logging.log4j.tojul {
+    exports org.apache.logging.log4j.tojul to org.apache.logging.log4j, 
org.apache.logging.log4j.tojul.test;
+
+    requires org.apache.logging.log4j;
+    requires java.logging;
+
+    provides org.apache.logging.log4j.spi.Provider with 
org.apache.logging.log4j.tojul.JULProvider;
+}
\ No newline at end of file
diff --git 
a/log4j-to-jul/src/main/java/org/apache/logging/log4j/tojul/JULLogger.java 
b/log4j-to-jul/src/main/java/org/apache/logging/log4j/tojul/JULLogger.java
index 5f27ae3b71..0865782425 100644
--- a/log4j-to-jul/src/main/java/org/apache/logging/log4j/tojul/JULLogger.java
+++ b/log4j-to-jul/src/main/java/org/apache/logging/log4j/tojul/JULLogger.java
@@ -32,7 +32,7 @@ import org.apache.logging.log4j.spi.AbstractLogger;
  *
  * @author <a href="http://www.vorburger.ch";>Michael Vorburger.ch</a> for 
Google
  */
-final class JULLogger extends AbstractLogger {
+public final class JULLogger extends AbstractLogger {
     private static final long serialVersionUID = 1L;
 
     private final Logger logger;
diff --git a/log4j-to-jul/src/test/java/module-info.java 
b/log4j-to-jul/src/test/java/module-info.java
new file mode 100644
index 0000000000..d8458215e9
--- /dev/null
+++ b/log4j-to-jul/src/test/java/module-info.java
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+module org.apache.logging.log4j.tojul.test {
+    exports org.apache.logging.log4j.tojul.test to org.junit.platform.commons;
+
+    requires guava.testlib;
+    requires org.apache.logging.log4j;
+    requires org.apache.logging.log4j.tojul;
+    requires org.assertj.core;
+    requires org.junit.jupiter.api;
+    requires org.junit.jupiter.engine;
+    requires org.junit.platform.commons;
+    requires org.junit.platform.engine;
+    requires java.logging;
+}
\ No newline at end of file
diff --git 
a/log4j-to-jul/src/test/java/org/apache/logging/log4j/tojul/LoggerTest.java 
b/log4j-to-jul/src/test/java/org/apache/logging/log4j/tojul/test/LoggerTest.java
similarity index 99%
rename from 
log4j-to-jul/src/test/java/org/apache/logging/log4j/tojul/LoggerTest.java
rename to 
log4j-to-jul/src/test/java/org/apache/logging/log4j/tojul/test/LoggerTest.java
index ae6325f25f..1cb1bc9d93 100644
--- a/log4j-to-jul/src/test/java/org/apache/logging/log4j/tojul/LoggerTest.java
+++ 
b/log4j-to-jul/src/test/java/org/apache/logging/log4j/tojul/test/LoggerTest.java
@@ -15,10 +15,11 @@
 * limitations under the license.
 */
 
-package org.apache.logging.log4j.tojul;
+package org.apache.logging.log4j.tojul.test;
 
 import com.google.common.testing.TestLogHandler;
 import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.tojul.JULLogger;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;

Reply via email to