Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #4572 - Replace Jetty Logging with slf4j #4611

Closed
wants to merge 43 commits into from

Conversation

joakime
Copy link
Contributor

@joakime joakime commented Feb 26, 2020

This is the large draft PR that @gregw asked to see.

The changes from PR #4601 have been merged into here, along with all of the other changes.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ JPMS module-info.java
+ StacklessLogging supports java.lang.Package arrays now
+ Removing OSGi Require-Capability against serviceloader

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Preparing for refactoring to cleanup usage of old school
Jetty logging to slf4j.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…4572-replace-jetty-logging

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…4572-replace-jetty-logging

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>

# Conflicts:
#	jetty-util/src/main/java/org/eclipse/jetty/util/log/JavaUtilLog.java
#	jetty-util/src/main/java/org/eclipse/jetty/util/log/JettyLogHandler.java
#	jetty-util/src/main/java/org/eclipse/jetty/util/log/Log.java
#	jetty-util/src/main/java/org/eclipse/jetty/util/log/Logger.java
#	jetty-util/src/main/java/org/eclipse/jetty/util/log/StdErrLog.java
#	jetty-util/src/test/java/org/eclipse/jetty/util/log/StdErrLogTest.java
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…d containerClasspath

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…mpls do"

This reverts commit 1339bd1

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…0.x-4572-replace-jetty-logging

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>

# Conflicts:
#	jetty-slf4j-impl/pom.xml
#	jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/JettyLogger.java
#	jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/JettyLoggerConfiguration.java
#	jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/JettyLoggerFactory.java
#	jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/JettyLoggingServiceProvider.java
#	jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/StacklessLogging.java
#	jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/StdErrAppender.java
#	jetty-slf4j-impl/src/test/java/org/eclipse/jetty/logging/JettyLoggerConfigurationTest.java
#	jetty-slf4j-impl/src/test/java/org/eclipse/jetty/logging/JettyLoggerTest.java
#	jetty-slf4j-impl/src/test/java/org/eclipse/jetty/logging/StdErrAppenderTest.java
@joakime joakime self-assigned this Feb 26, 2020
@joakime joakime linked an issue Feb 26, 2020 that may be closed by this pull request
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…4572-replace-jetty-logging

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>

# Conflicts:
#	jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlConfigurationTest.java
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
@@ -45,7 +45,12 @@
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-slf4j12</artifactId>
<artifactId>slf4j-log4j12</artifactId>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prior entry log4j-slf4j12 doesn't exist. (it was a mistake of mine in a prior commit on this branch)

</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entry fixes a bad version mismatch for jul-to-slf4j that is brought in transitively by a different dependency

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this log4j.xml just makes the output appear on the console (something that the it tests expect)

@joakime
Copy link
Contributor Author

joakime commented Mar 9, 2020

Closing this as it's not meant to be reviewed. Branch will be deleted in the near future.

@joakime joakime closed this Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace Jetty Logging
1 participant