You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ppkarwasz (via GitHub)" <gi...@apache.org> on 2024/09/09 19:14:32 UTC
[PR] Modernize and split `log4j-jul` (logging-log4j2)
ppkarwasz opened a new pull request, #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935
The current `log4j-jul` artifact contains four different features:
1. A custom [`j.u.l.LogManager`](https://docs.oracle.com/en/java/javase/21/docs/api/java.logging/java/util/logging/LogManager.html) implementation. This implementation is actually rather generic and can be adapted to any kind of logging backend by implementing an `o.a.l.l.j.AbstractLoggerAdapter`. The default `AbstractLoggerAdapter` forwards all logging calls to the Log4j API.
2. An implementation of `o.a.l.l.j.AbstractLoggerAdapter` called `CoreLoggerAdapter` that forwards the JUL `Logger.setLevel` and similar non-logging API method to `log4j-core`.
3. A custom [`j.u.l.Handler`](https://docs.oracle.com/en%2Fjava%2Fjavase%2F21%2Fdocs%2Fapi%2F%2F/java.logging/java/util/logging/Handler.html) implementation called `Log4jBridgeHandler` that forwards `LogRecord`s to Log4j API. This handler can be used if the user can not change the implementation of `j.u.l.LogManager`.
4. Using the `Log4jBridgeHandler` is very slow for log statements that are disabled in the Log4j API implementation, but not disabled in the default JUL `LogManager` implementation. Therefore `log4j-jul` offers a level propagator that modifies the level of JUL loggers, whenever the level of the corresponding Log4j Core loggers change. This feature of course depends on `log4j-core`.
This PR:
- Removes `CoreLoggerAdapter` and related classes. IMHO users should not use `j.u.l.Logger` to modify the configuration of the logging backend.
- Moves the level propagator to a new module `log4j-jul-propagator`. Note that the level propagator idea comes from SLF4J/Logback where `jul-to-slf4j` introduces a `LevelChangePropagator` interface, but the implementation is in Logback.
- Revamps the `o.a.l.l.j.LogManager`:
- It implements JUL methods that were introduced in Java 9.
- It improves the implementation of methods that accept a `sourceClass` and `sourceMethod` parameters, by forwarding these parameters using `LogBuilder#withLocation()`.
- It fixes location detection, even if JUL `Filter`s are used.
The last part probably could be improved: I don't see why we should support `j.u.l.Filter`s. We could drop the feature in 3.x.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935#issuecomment-2349037020
@vy,
I did some further changes to this PR:
- b416ca54453816787e1c927dbb1aa00204677019: I encapsulated the existing `log4j-jul` classes into three packages: `spi` contains interfaces and classes users can implement, `support` contains classes that can help implement SPI, `internal` is of limits and not exported through JPMS.
- 03a70ff59b5d136c23b0b0bcc736a59868a98c49: I removed the support for `j.u.l.Filter`. IMHO this is not used and can provide users with hard to debug surprises if a legacy library messes with the logging configuration behind their back.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "vy (via GitHub)" <gi...@apache.org>.
vy commented on code in PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935#discussion_r1756589508
##########
src/site/antora/modules/ROOT/pages/log4j-jul.adoc:
##########
@@ -15,116 +15,175 @@ Licensed to the Apache Software Foundation (ASF) under one or more
limitations under the License.
////
-= Log4j JDK Logging Adapter
+= JUL-to-Log4j bridge
-The JDK Logging Adapter is a custom implementation of
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/LogManager.html[`java.util.logging.LogManager`]
-that uses link:javadoc/log4j-core/index.html[Log4j].
-This adapter can be used with either the Log4j API or Log4j Core.
-When used with the API, there are a couple features of JUL that aren't supported.
-However, this does allow any other Log4j Provider besides the Core provider to be used with JUL.
+The JUL-to-Log4j bridge provides components that allow application and library that use
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html[`java.util.logging.Logger`]
+(JUL) to log to the Log4j API instead.
-== Requirements
+[IMPORTANT]
+====
+This chapter covers advanced usage scenarios of the JUL-to-Log4j bridge.
+For the installation procedure and basic configuration see
+xref:manual/installation.adoc#impl-core-bridge-jul[Using JUL-to-Log4j]
+section of our
+xref:manual/installation.adoc[Installation guide].
+====
-The JDK Logging Adapter is dependent on the Log4j API and optionally Log4j Core.
+[#configuration]
+== Configuration
-== Usage
+.Struggling with the logging API, implementation, and bridge concepts? Click for an introduction.
+[%collapsible]
+====
+include::partial$concepts.adoc[tag=!software-type]
+====
-To use the JDK Logging Adapter, you must set the system property `java.util.logging.manager` to `org.apache.logging.log4j.jul.LogManager`.
+The `java.util.logging` logging API, available since JRE 1.4, shares many similarities with other logging API, such as SLF4J or Log4j API.
+Similarly to other APIs, it allows users to change the underlying
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[`LogManager`]
+implementation, but unlike other APIs, it has two big limitations:
-This must be done either through the command line (i.e., using the `-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager` argument) or by using `System.setProperty()` before any calls are made to `LogManager` or `Logger`.
+* it is part of JRE, which means that each JVM can contain only one instance of the `LogManager` class and all the applications of an application server must use the same `LogManager` implementation,
+* it does not support auto-detection of the logging backend through `ServiceLoader` or a similar mechanim (see
+https://bugs.openjdk.org/browse/JDK-8262741[JDK-8262741]
+).
+In order to switch to an alternate `LogManager` implementation you must be able to set the `java.util.logging.manager` system property **before** the first logging call.
-== Compatibility
+To work around the limitations of JUL, the JUL-to-Log4j bridge offers two installation options:
+
+. If you are able to modify the `java.util.logging.manager` system property very early in the JVM startup process, you can replace the default `LogManager` implementation with a Log4j-specific one.
+This option gives the best performance.
+See <<bridge-logmanager>> for details.
+. If JUL initializes **before** your application does, which is a typical behavior in application servers, you can still configure JUL to use Log4j as appender.
+See <<bridge-handler>> for details.
+
+[#bridge-logmanager]
+== Using `LogManager`
+
+The best way to install the JUL-to-Log4j bridge on your system is to set the value of the `java.util.logging.manager` Java system property to
+
+----
+org.apache.logging.log4j.jul.LogManager
+----
+
+This property must be set very early in an application initialization process, e.g. using the `-D<property>=<value>` command line option of the `java` executable or by adding:
+
+[source,java]
+----
+static {
+ if (System.getProperty("java.util.logging.manager") == null) {
+ System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager");
+ }
+}
+----
+
+at the top of your main class.
+
+Setting this property will replace the default JUL `LogManager` implementation with a custom implementation that translates JUL `Logger` method calls into Log4j `Logger` calls with a **minimal** overhead.
+
+[#bridge-logmanager-features]
+=== `LogManager`-specific features
The use of a
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Filter.html[`java.util.logging.Filter`]
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Filter.html[`java.util.logging.Filter`]
is supported on a
-per-link:https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Logger.html[`Logger`]
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Logger.html[per-`Logger`]
basis.
-However, it is recommended to use the standard xref:manual/filters.adoc[filters] feature in Log4j instead.
+However, it is recommended to use the standard xref:manual/filters.adoc[Filters] feature in Log4j instead.
The use of
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Handler.html[`java.util.logging.Handler`]
-classes is
-_NOT_ supported.
-Custom Handlers should instead use an appropriate
-xref:manual/appenders.adoc[Appender]
-or code their own
-link:../javadoc/log4j-core/org/apache/logging/log4j/core/Appender.html[`Appender`]
-plugin.
-
-Java logging levels are translated into Log4j logging levels dynamically.
-The following table lists the conversions between a Java logging level and its equivalent Log4j level.
-Custom levels should be implemented as an implementation of `LevelConverter`, and the Log4j property
-xref:manual/systemproperties.adoc#log4j.jul.levelConverter[`log4j.jul.levelConverter`]
-must be set to your custom class name.
-Using the default `LevelConverter` implementation, custom logging levels are mapped to whatever the current level of the `Logger` being logged to is using.
-
-[#default-level-conversions]
-=== Default Level Conversions
-
-.JUL to Log4j level conversion
-[%header]
-|===
-| Java Level | Log4j Level
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Handler.html[`java.util.logging.Handler`]
+classes is **not** supported.
+Custom handlers should be replaced with the appropriate
+xref:manual/appenders.adoc[Log4j Appender].
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#OFF[`OFF`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#OFF[`OFF`]
+[#bridge-handler]
+== Using `Log4jBridgeHandler`
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#SEVERE[`SEVERE`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#ERROR[`ERROR`]
+.Are you a Spring Boot user?
+[TIP]
+====
+Spring Boot will automatically configure `Log4jBridgeHandler`.
+====
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#WARNING[`WARNING`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#WARN[`WARN`]
+If setting the `java.util.logging.manager` system property is not possible, the JUL-to-Log4j bridge offers an implementation of JUL's
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Handler.html[`Handler`]
+abstract class, which redirects all log events to Log4j Core:
+`org.apache.logging.log4j.jul.Log4jBridgeHandler`.
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#OFF[`OFF`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#INFO[`INFO`]
+[WARNING]
+====
+The `Log4jBridgeHandler` requires Log4j Core as logging implementation and will fail with other Log4j API implementations.
+====
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#CONFIG[`CONFIG`]
-| custom `CONFIG` level
+In order to use `Log4jBridgeHandler` you can either:
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#FINE[`FINE`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#DEBUG[`DEBUG`]
+* modify the default JUL configuration file `logging.properties` to only contain:
++
+[source,properties]
+----
+# Set Log4jBridgeHandler as only handler for all JUL loggers
+handlers = org.apache.logging.log4j.jul.Log4jBridgeHandler
+----
++
+See the
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[JRE documentation]
+for details about the format and location of the `logging.properties` file.
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#FINER[`FINER`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#TRACE[`TRACE`]
+* or call the `Log4jBridgeHandler.install()` method in your code.
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#FINEST[`FINEST`]
-| custom `FINEST` level
+[IMPORTANT]
+====
+Usage of `Log4jBridgeHandler` introduces a considerably higher overhead that the usage of `LogManager`, since logging events need to traverse the entire JUL logging pipeline followed by the logging pipeline of the Log4j API implementation.
Review Comment:
```suggestion
Usage of `Log4jBridgeHandler` introduces a considerably higher overhead, since logging events need to traverse the entire JUL logging pipeline followed by the logging pipeline of the Log4j API implementation.
```
##########
src/site/antora/modules/ROOT/pages/log4j-jul.adoc:
##########
@@ -15,116 +15,175 @@ Licensed to the Apache Software Foundation (ASF) under one or more
limitations under the License.
////
-= Log4j JDK Logging Adapter
+= JUL-to-Log4j bridge
-The JDK Logging Adapter is a custom implementation of
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/LogManager.html[`java.util.logging.LogManager`]
-that uses link:javadoc/log4j-core/index.html[Log4j].
-This adapter can be used with either the Log4j API or Log4j Core.
-When used with the API, there are a couple features of JUL that aren't supported.
-However, this does allow any other Log4j Provider besides the Core provider to be used with JUL.
+The JUL-to-Log4j bridge provides components that allow application and library that use
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html[`java.util.logging.Logger`]
+(JUL) to log to the Log4j API instead.
-== Requirements
+[IMPORTANT]
+====
+This chapter covers advanced usage scenarios of the JUL-to-Log4j bridge.
+For the installation procedure and basic configuration see
+xref:manual/installation.adoc#impl-core-bridge-jul[Using JUL-to-Log4j]
+section of our
+xref:manual/installation.adoc[Installation guide].
+====
-The JDK Logging Adapter is dependent on the Log4j API and optionally Log4j Core.
+[#configuration]
+== Configuration
-== Usage
+.Struggling with the logging API, implementation, and bridge concepts? Click for an introduction.
+[%collapsible]
+====
+include::partial$concepts.adoc[tag=!software-type]
+====
-To use the JDK Logging Adapter, you must set the system property `java.util.logging.manager` to `org.apache.logging.log4j.jul.LogManager`.
+The `java.util.logging` logging API, available since JRE 1.4, shares many similarities with other logging API, such as SLF4J or Log4j API.
+Similarly to other APIs, it allows users to change the underlying
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[`LogManager`]
+implementation, but unlike other APIs, it has two big limitations:
-This must be done either through the command line (i.e., using the `-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager` argument) or by using `System.setProperty()` before any calls are made to `LogManager` or `Logger`.
+* it is part of JRE, which means that each JVM can contain only one instance of the `LogManager` class and all the applications of an application server must use the same `LogManager` implementation,
+* it does not support auto-detection of the logging backend through `ServiceLoader` or a similar mechanim (see
+https://bugs.openjdk.org/browse/JDK-8262741[JDK-8262741]
+).
+In order to switch to an alternate `LogManager` implementation you must be able to set the `java.util.logging.manager` system property **before** the first logging call.
-== Compatibility
+To work around the limitations of JUL, the JUL-to-Log4j bridge offers two installation options:
+
+. If you are able to modify the `java.util.logging.manager` system property very early in the JVM startup process, you can replace the default `LogManager` implementation with a Log4j-specific one.
+This option gives the best performance.
+See <<bridge-logmanager>> for details.
+. If JUL initializes **before** your application does, which is a typical behavior in application servers, you can still configure JUL to use Log4j as appender.
+See <<bridge-handler>> for details.
+
+[#bridge-logmanager]
+== Using `LogManager`
+
+The best way to install the JUL-to-Log4j bridge on your system is to set the value of the `java.util.logging.manager` Java system property to
+
+----
+org.apache.logging.log4j.jul.LogManager
+----
+
+This property must be set very early in an application initialization process, e.g. using the `-D<property>=<value>` command line option of the `java` executable or by adding:
+
+[source,java]
+----
+static {
+ if (System.getProperty("java.util.logging.manager") == null) {
+ System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager");
+ }
+}
+----
+
+at the top of your main class.
+
+Setting this property will replace the default JUL `LogManager` implementation with a custom implementation that translates JUL `Logger` method calls into Log4j `Logger` calls with a **minimal** overhead.
+
+[#bridge-logmanager-features]
+=== `LogManager`-specific features
The use of a
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Filter.html[`java.util.logging.Filter`]
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Filter.html[`java.util.logging.Filter`]
is supported on a
-per-link:https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Logger.html[`Logger`]
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Logger.html[per-`Logger`]
basis.
-However, it is recommended to use the standard xref:manual/filters.adoc[filters] feature in Log4j instead.
+However, it is recommended to use the standard xref:manual/filters.adoc[Filters] feature in Log4j instead.
The use of
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Handler.html[`java.util.logging.Handler`]
-classes is
-_NOT_ supported.
-Custom Handlers should instead use an appropriate
-xref:manual/appenders.adoc[Appender]
-or code their own
-link:../javadoc/log4j-core/org/apache/logging/log4j/core/Appender.html[`Appender`]
-plugin.
-
-Java logging levels are translated into Log4j logging levels dynamically.
-The following table lists the conversions between a Java logging level and its equivalent Log4j level.
-Custom levels should be implemented as an implementation of `LevelConverter`, and the Log4j property
-xref:manual/systemproperties.adoc#log4j.jul.levelConverter[`log4j.jul.levelConverter`]
-must be set to your custom class name.
-Using the default `LevelConverter` implementation, custom logging levels are mapped to whatever the current level of the `Logger` being logged to is using.
-
-[#default-level-conversions]
-=== Default Level Conversions
-
-.JUL to Log4j level conversion
-[%header]
-|===
-| Java Level | Log4j Level
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Handler.html[`java.util.logging.Handler`]
+classes is **not** supported.
+Custom handlers should be replaced with the appropriate
+xref:manual/appenders.adoc[Log4j Appender].
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#OFF[`OFF`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#OFF[`OFF`]
+[#bridge-handler]
+== Using `Log4jBridgeHandler`
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#SEVERE[`SEVERE`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#ERROR[`ERROR`]
+.Are you a Spring Boot user?
+[TIP]
+====
+Spring Boot will automatically configure `Log4jBridgeHandler`.
+====
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#WARNING[`WARNING`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#WARN[`WARN`]
+If setting the `java.util.logging.manager` system property is not possible, the JUL-to-Log4j bridge offers an implementation of JUL's
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Handler.html[`Handler`]
+abstract class, which redirects all log events to Log4j Core:
+`org.apache.logging.log4j.jul.Log4jBridgeHandler`.
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#OFF[`OFF`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#INFO[`INFO`]
+[WARNING]
+====
+The `Log4jBridgeHandler` requires Log4j Core as logging implementation and will fail with other Log4j API implementations.
+====
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#CONFIG[`CONFIG`]
-| custom `CONFIG` level
+In order to use `Log4jBridgeHandler` you can either:
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#FINE[`FINE`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#DEBUG[`DEBUG`]
+* modify the default JUL configuration file `logging.properties` to only contain:
++
+[source,properties]
+----
+# Set Log4jBridgeHandler as only handler for all JUL loggers
+handlers = org.apache.logging.log4j.jul.Log4jBridgeHandler
+----
++
+See the
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[JRE documentation]
Review Comment:
Shall we replace `8` with `{java-target-version}` instead? (There are some more places for such a change in this PR.)
##########
log4j-jul/pom.xml:
##########
@@ -29,56 +29,58 @@
<description>The Apache Log4j implementation of java.util.logging</description>
<properties>
- <log4jParentDir>${basedir}/..</log4jParentDir>
-
- <!--
- ~ OSGi and JPMS options
- -->
<bnd-extra-package-options>
- <!-- Log4j Core is optional -->
- org.apache.logging.log4j.core.*;resolution:=optional
+ <!-- Optional annotations -->
+ org.jspecify.*;resolution:=optional
</bnd-extra-package-options>
-
- <!-- PTS requires using the JUnit Platform, which interferes with JUL initialization -->
- <predictive.test.selection.enabled>false</predictive.test.selection.enabled>
+ <bnd-extra-module-options>
+ <!-- Optional modules can not be `transitive` -->
+ org.jspecify;transitive=false
+ </bnd-extra-module-options>
</properties>
<dependencies>
+
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>
+
<dependency>
<groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- <optional>true</optional>
+ <artifactId>log4j-kit</artifactId>
Review Comment:
I was expecting only a dependency on `log4j-api`. Can we do without `-kit`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935#issuecomment-2347098254
> > It fixes location detection, even if JUL Filters are used.
> > The last part probably could be improved: I don't see why we should support `j.u.l.Filters`. We could drop the feature in `3.x`.
>
> Then let's drop it? I guess we can later on add it in a backward compatible manner if needed, right?
I agree, I will drop the `j.u.l.Filter` support.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz merged PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935#issuecomment-2429796627
I am merging this first and then we can discuss where to put `jul-to-log4j` (e.g. in a new repo).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on code in PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935#discussion_r1758914617
##########
src/site/antora/modules/ROOT/pages/log4j-jul.adoc:
##########
@@ -15,116 +15,175 @@ Licensed to the Apache Software Foundation (ASF) under one or more
limitations under the License.
////
-= Log4j JDK Logging Adapter
+= JUL-to-Log4j bridge
-The JDK Logging Adapter is a custom implementation of
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/LogManager.html[`java.util.logging.LogManager`]
-that uses link:javadoc/log4j-core/index.html[Log4j].
-This adapter can be used with either the Log4j API or Log4j Core.
-When used with the API, there are a couple features of JUL that aren't supported.
-However, this does allow any other Log4j Provider besides the Core provider to be used with JUL.
+The JUL-to-Log4j bridge provides components that allow application and library that use
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html[`java.util.logging.Logger`]
+(JUL) to log to the Log4j API instead.
-== Requirements
+[IMPORTANT]
+====
+This chapter covers advanced usage scenarios of the JUL-to-Log4j bridge.
+For the installation procedure and basic configuration see
+xref:manual/installation.adoc#impl-core-bridge-jul[Using JUL-to-Log4j]
+section of our
+xref:manual/installation.adoc[Installation guide].
+====
-The JDK Logging Adapter is dependent on the Log4j API and optionally Log4j Core.
+[#configuration]
+== Configuration
-== Usage
+.Struggling with the logging API, implementation, and bridge concepts? Click for an introduction.
+[%collapsible]
+====
+include::partial$concepts.adoc[tag=!software-type]
+====
-To use the JDK Logging Adapter, you must set the system property `java.util.logging.manager` to `org.apache.logging.log4j.jul.LogManager`.
+The `java.util.logging` logging API, available since JRE 1.4, shares many similarities with other logging API, such as SLF4J or Log4j API.
+Similarly to other APIs, it allows users to change the underlying
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[`LogManager`]
+implementation, but unlike other APIs, it has two big limitations:
-This must be done either through the command line (i.e., using the `-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager` argument) or by using `System.setProperty()` before any calls are made to `LogManager` or `Logger`.
+* it is part of JRE, which means that each JVM can contain only one instance of the `LogManager` class and all the applications of an application server must use the same `LogManager` implementation,
+* it does not support auto-detection of the logging backend through `ServiceLoader` or a similar mechanim (see
+https://bugs.openjdk.org/browse/JDK-8262741[JDK-8262741]
+).
+In order to switch to an alternate `LogManager` implementation you must be able to set the `java.util.logging.manager` system property **before** the first logging call.
-== Compatibility
+To work around the limitations of JUL, the JUL-to-Log4j bridge offers two installation options:
+
+. If you are able to modify the `java.util.logging.manager` system property very early in the JVM startup process, you can replace the default `LogManager` implementation with a Log4j-specific one.
+This option gives the best performance.
+See <<bridge-logmanager>> for details.
+. If JUL initializes **before** your application does, which is a typical behavior in application servers, you can still configure JUL to use Log4j as appender.
+See <<bridge-handler>> for details.
+
+[#bridge-logmanager]
+== Using `LogManager`
+
+The best way to install the JUL-to-Log4j bridge on your system is to set the value of the `java.util.logging.manager` Java system property to
+
+----
+org.apache.logging.log4j.jul.LogManager
+----
+
+This property must be set very early in an application initialization process, e.g. using the `-D<property>=<value>` command line option of the `java` executable or by adding:
+
+[source,java]
+----
+static {
+ if (System.getProperty("java.util.logging.manager") == null) {
+ System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager");
+ }
+}
+----
+
+at the top of your main class.
+
+Setting this property will replace the default JUL `LogManager` implementation with a custom implementation that translates JUL `Logger` method calls into Log4j `Logger` calls with a **minimal** overhead.
+
+[#bridge-logmanager-features]
+=== `LogManager`-specific features
The use of a
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Filter.html[`java.util.logging.Filter`]
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Filter.html[`java.util.logging.Filter`]
is supported on a
-per-link:https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Logger.html[`Logger`]
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Logger.html[per-`Logger`]
basis.
-However, it is recommended to use the standard xref:manual/filters.adoc[filters] feature in Log4j instead.
+However, it is recommended to use the standard xref:manual/filters.adoc[Filters] feature in Log4j instead.
The use of
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Handler.html[`java.util.logging.Handler`]
-classes is
-_NOT_ supported.
-Custom Handlers should instead use an appropriate
-xref:manual/appenders.adoc[Appender]
-or code their own
-link:../javadoc/log4j-core/org/apache/logging/log4j/core/Appender.html[`Appender`]
-plugin.
-
-Java logging levels are translated into Log4j logging levels dynamically.
-The following table lists the conversions between a Java logging level and its equivalent Log4j level.
-Custom levels should be implemented as an implementation of `LevelConverter`, and the Log4j property
-xref:manual/systemproperties.adoc#log4j.jul.levelConverter[`log4j.jul.levelConverter`]
-must be set to your custom class name.
-Using the default `LevelConverter` implementation, custom logging levels are mapped to whatever the current level of the `Logger` being logged to is using.
-
-[#default-level-conversions]
-=== Default Level Conversions
-
-.JUL to Log4j level conversion
-[%header]
-|===
-| Java Level | Log4j Level
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Handler.html[`java.util.logging.Handler`]
+classes is **not** supported.
+Custom handlers should be replaced with the appropriate
+xref:manual/appenders.adoc[Log4j Appender].
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#OFF[`OFF`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#OFF[`OFF`]
+[#bridge-handler]
+== Using `Log4jBridgeHandler`
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#SEVERE[`SEVERE`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#ERROR[`ERROR`]
+.Are you a Spring Boot user?
+[TIP]
+====
+Spring Boot will automatically configure `Log4jBridgeHandler`.
+====
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#WARNING[`WARNING`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#WARN[`WARN`]
+If setting the `java.util.logging.manager` system property is not possible, the JUL-to-Log4j bridge offers an implementation of JUL's
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Handler.html[`Handler`]
+abstract class, which redirects all log events to Log4j Core:
+`org.apache.logging.log4j.jul.Log4jBridgeHandler`.
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#OFF[`OFF`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#INFO[`INFO`]
+[WARNING]
+====
+The `Log4jBridgeHandler` requires Log4j Core as logging implementation and will fail with other Log4j API implementations.
+====
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#CONFIG[`CONFIG`]
-| custom `CONFIG` level
+In order to use `Log4jBridgeHandler` you can either:
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#FINE[`FINE`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#DEBUG[`DEBUG`]
+* modify the default JUL configuration file `logging.properties` to only contain:
++
+[source,properties]
+----
+# Set Log4jBridgeHandler as only handler for all JUL loggers
+handlers = org.apache.logging.log4j.jul.Log4jBridgeHandler
+----
++
+See the
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[JRE documentation]
Review Comment:
Fixed in https://github.com/apache/logging-log4j2/pull/2935/commits/ef72bf153195ba6bdfd3a7862b439578c549a2f2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935#issuecomment-2355354428
For backward compatibility with e.g. `spring-boot-starter-log4j2`, which uses `Log4jBridgeHandler` I would refactor this PR in the following way:
- move the level change propagator back to `log4j-jul` and add a **hard** dependency on `log4j-core`. The lack of a level change propagator can really hurt the experience of `spring-boot-starter-log4j2` users.
- move `o.a.l.l.j.LogManager` out of `log4j-jul` to a `jul-to-log4j` artifact that depends on Log4j API only. This will require changes in some applications, which hard code a `System.setProperty("java.util.logging.manager", "o.a.l.l.j.LogManager")` in their main class (or shell scripts).
**Note**: a better alternative to a hardcoded `o.a.l.l.j.LogManager` would be to have a universal `j.u.l.LogManager` implementation that loads implementation using `ServiceLoader` like any other modern logging API. I have provided an initial mock-up of such a universal `j.u.l.LogManager` implementation in [ppkarwasz/slf4j/jul-manager](https://github.com/ppkarwasz/slf4j/tree/feature/jul-manager/jul-manager) and opened qos-ch/slf4j#429 to test for support among Logback users.
Logback users have the most problems with JUL-to-Logback redirection, since they can only use:
- [`Slf4jBridgeHandler`](https://www.slf4j.org/apidocs/org/slf4j/bridge/SLF4JBridgeHandler.html), which as every `Handler` (appender) is inefficient,
- A combination of `log4j-jul` + `log4j-to-slf4j`, which is not a direct path.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on code in PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935#discussion_r1757481625
##########
src/site/antora/modules/ROOT/pages/log4j-jul.adoc:
##########
@@ -15,116 +15,175 @@ Licensed to the Apache Software Foundation (ASF) under one or more
limitations under the License.
////
-= Log4j JDK Logging Adapter
+= JUL-to-Log4j bridge
-The JDK Logging Adapter is a custom implementation of
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/LogManager.html[`java.util.logging.LogManager`]
-that uses link:javadoc/log4j-core/index.html[Log4j].
-This adapter can be used with either the Log4j API or Log4j Core.
-When used with the API, there are a couple features of JUL that aren't supported.
-However, this does allow any other Log4j Provider besides the Core provider to be used with JUL.
+The JUL-to-Log4j bridge provides components that allow application and library that use
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html[`java.util.logging.Logger`]
+(JUL) to log to the Log4j API instead.
-== Requirements
+[IMPORTANT]
+====
+This chapter covers advanced usage scenarios of the JUL-to-Log4j bridge.
+For the installation procedure and basic configuration see
+xref:manual/installation.adoc#impl-core-bridge-jul[Using JUL-to-Log4j]
+section of our
+xref:manual/installation.adoc[Installation guide].
+====
-The JDK Logging Adapter is dependent on the Log4j API and optionally Log4j Core.
+[#configuration]
+== Configuration
-== Usage
+.Struggling with the logging API, implementation, and bridge concepts? Click for an introduction.
+[%collapsible]
+====
+include::partial$concepts.adoc[tag=!software-type]
+====
-To use the JDK Logging Adapter, you must set the system property `java.util.logging.manager` to `org.apache.logging.log4j.jul.LogManager`.
+The `java.util.logging` logging API, available since JRE 1.4, shares many similarities with other logging API, such as SLF4J or Log4j API.
+Similarly to other APIs, it allows users to change the underlying
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[`LogManager`]
+implementation, but unlike other APIs, it has two big limitations:
-This must be done either through the command line (i.e., using the `-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager` argument) or by using `System.setProperty()` before any calls are made to `LogManager` or `Logger`.
+* it is part of JRE, which means that each JVM can contain only one instance of the `LogManager` class and all the applications of an application server must use the same `LogManager` implementation,
+* it does not support auto-detection of the logging backend through `ServiceLoader` or a similar mechanim (see
+https://bugs.openjdk.org/browse/JDK-8262741[JDK-8262741]
+).
+In order to switch to an alternate `LogManager` implementation you must be able to set the `java.util.logging.manager` system property **before** the first logging call.
-== Compatibility
+To work around the limitations of JUL, the JUL-to-Log4j bridge offers two installation options:
+
+. If you are able to modify the `java.util.logging.manager` system property very early in the JVM startup process, you can replace the default `LogManager` implementation with a Log4j-specific one.
+This option gives the best performance.
+See <<bridge-logmanager>> for details.
+. If JUL initializes **before** your application does, which is a typical behavior in application servers, you can still configure JUL to use Log4j as appender.
+See <<bridge-handler>> for details.
+
+[#bridge-logmanager]
+== Using `LogManager`
+
+The best way to install the JUL-to-Log4j bridge on your system is to set the value of the `java.util.logging.manager` Java system property to
+
+----
+org.apache.logging.log4j.jul.LogManager
+----
+
+This property must be set very early in an application initialization process, e.g. using the `-D<property>=<value>` command line option of the `java` executable or by adding:
+
+[source,java]
+----
+static {
+ if (System.getProperty("java.util.logging.manager") == null) {
+ System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager");
+ }
+}
+----
+
+at the top of your main class.
+
+Setting this property will replace the default JUL `LogManager` implementation with a custom implementation that translates JUL `Logger` method calls into Log4j `Logger` calls with a **minimal** overhead.
+
+[#bridge-logmanager-features]
+=== `LogManager`-specific features
The use of a
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Filter.html[`java.util.logging.Filter`]
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Filter.html[`java.util.logging.Filter`]
is supported on a
-per-link:https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Logger.html[`Logger`]
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Logger.html[per-`Logger`]
basis.
-However, it is recommended to use the standard xref:manual/filters.adoc[filters] feature in Log4j instead.
+However, it is recommended to use the standard xref:manual/filters.adoc[Filters] feature in Log4j instead.
The use of
-https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Handler.html[`java.util.logging.Handler`]
-classes is
-_NOT_ supported.
-Custom Handlers should instead use an appropriate
-xref:manual/appenders.adoc[Appender]
-or code their own
-link:../javadoc/log4j-core/org/apache/logging/log4j/core/Appender.html[`Appender`]
-plugin.
-
-Java logging levels are translated into Log4j logging levels dynamically.
-The following table lists the conversions between a Java logging level and its equivalent Log4j level.
-Custom levels should be implemented as an implementation of `LevelConverter`, and the Log4j property
-xref:manual/systemproperties.adoc#log4j.jul.levelConverter[`log4j.jul.levelConverter`]
-must be set to your custom class name.
-Using the default `LevelConverter` implementation, custom logging levels are mapped to whatever the current level of the `Logger` being logged to is using.
-
-[#default-level-conversions]
-=== Default Level Conversions
-
-.JUL to Log4j level conversion
-[%header]
-|===
-| Java Level | Log4j Level
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Handler.html[`java.util.logging.Handler`]
+classes is **not** supported.
+Custom handlers should be replaced with the appropriate
+xref:manual/appenders.adoc[Log4j Appender].
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#OFF[`OFF`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#OFF[`OFF`]
+[#bridge-handler]
+== Using `Log4jBridgeHandler`
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#SEVERE[`SEVERE`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#ERROR[`ERROR`]
+.Are you a Spring Boot user?
+[TIP]
+====
+Spring Boot will automatically configure `Log4jBridgeHandler`.
+====
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#WARNING[`WARNING`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#WARN[`WARN`]
+If setting the `java.util.logging.manager` system property is not possible, the JUL-to-Log4j bridge offers an implementation of JUL's
+https://docs.oracle.com/javase/{java-target-version}/docs/api/java/util/logging/Handler.html[`Handler`]
+abstract class, which redirects all log events to Log4j Core:
+`org.apache.logging.log4j.jul.Log4jBridgeHandler`.
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#OFF[`OFF`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#INFO[`INFO`]
+[WARNING]
+====
+The `Log4jBridgeHandler` requires Log4j Core as logging implementation and will fail with other Log4j API implementations.
+====
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#CONFIG[`CONFIG`]
-| custom `CONFIG` level
+In order to use `Log4jBridgeHandler` you can either:
-| https://docs.oracle.com/en/java/javase/{java-target-version}/docs/api/java.logging/java/util/logging/Level.html#FINE[`FINE`]
-| {log4j2-url}/javadoc/log4j-api/org/apache/logging/log4j/Level.html#DEBUG[`DEBUG`]
+* modify the default JUL configuration file `logging.properties` to only contain:
++
+[source,properties]
+----
+# Set Log4jBridgeHandler as only handler for all JUL loggers
+handlers = org.apache.logging.log4j.jul.Log4jBridgeHandler
+----
++
+See the
+https://docs.oracle.com/javase/8/docs/api/java/util/logging/LogManager.html[JRE documentation]
Review Comment:
Right, yes, we can, but Java 9+ follow a different URI pattern (there are modules in play). I'll fix it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Modernize and split `log4j-jul` (logging-log4j2)
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on code in PR #2935:
URL: https://github.com/apache/logging-log4j2/pull/2935#discussion_r1757482616
##########
log4j-jul/pom.xml:
##########
@@ -29,56 +29,58 @@
<description>The Apache Log4j implementation of java.util.logging</description>
<properties>
- <log4jParentDir>${basedir}/..</log4jParentDir>
-
- <!--
- ~ OSGi and JPMS options
- -->
<bnd-extra-package-options>
- <!-- Log4j Core is optional -->
- org.apache.logging.log4j.core.*;resolution:=optional
+ <!-- Optional annotations -->
+ org.jspecify.*;resolution:=optional
</bnd-extra-package-options>
-
- <!-- PTS requires using the JUnit Platform, which interferes with JUL initialization -->
- <predictive.test.selection.enabled>false</predictive.test.selection.enabled>
+ <bnd-extra-module-options>
+ <!-- Optional modules can not be `transitive` -->
+ org.jspecify;transitive=false
+ </bnd-extra-module-options>
</properties>
<dependencies>
+
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>
+
<dependency>
<groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- <optional>true</optional>
+ <artifactId>log4j-kit</artifactId>
Review Comment:
The `log4j-jul` modules use to Log4j configuration properties, `log4j-kit` is necessary if we want to support them in a 3.x-way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org