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 logging (part 2 of 3) #4643

Conversation

joakime
Copy link
Contributor

@joakime joakime commented Mar 5, 2020

This branch is part 2 (of 3) is based off of branch jetty-10.0.x-4572-new-slf4j-logger-impl (which is part 1 of 3)

See Part 1 on PR #4601

  • Adding slf4j-api to jetty-util
  • Adding jetty-slf4j-impl as solid dependency in jetty-util
  • Removed (most of) org.eclipse.jetty.util.log.* classes (and test cases)
  • Making bridge implementations of org.eclipse.jetty.util.log. classes
    • Logger.java is still the interface
    • Slf4jLogger is a bridge API only, and just calls org.slf4j APIs
    • Log.java is also a bridge API to org.slf4j APIs
  • Adding requires org.slf4j; to module-info.java classes on maven projects that are actually using logging.
  • Removed org.eclipse.jetty.util.log.Log.class=<impl> from jetty-logging.properties
  • Fixing test-realm.xml use of Log classes to print warning
  • Moving jetty logging modules from jetty-util to jetty-home
  • Simplifying jetty logging modules.
  • Adding alternate default provider mechanism in jetty-start so that logging-jetty is the default for provider logging
  • Updating references in testcases of StacklessLogging to new org.eclipse.jetty.logging location.

sbordet and others added 30 commits February 6, 2020 16:32
Made HTTP2SessionContainer implement Graceful, so that it can be found
in the component hierarchy and can shutdown all sessions.
Modified HTTP2ServerSession to reject requests if already closed/shutdown.
Implemented shutdown in HTTP2Session.

Signed-off-by: Simone Bordet <[email protected]>
Updates after review.

Signed-off-by: Simone Bordet <[email protected]>
Message reader now validates UTF8

Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
Remove ContextListeners from the destroy list when removed.

Signed-off-by: Greg Wilkins <[email protected]>
* Fixes #4577 IPAccessHandler in context

Fixes and tests #4577 IPAccessHandler in context by using target instead of pathInfo for path matching.

Signed-off-by: Greg Wilkins <[email protected]>

* Tests #4577 IPAccessHandler target

Updates from review.

Signed-off-by: Greg Wilkins <[email protected]>

* Issue #4577 IpAccessHandler NPE

Match on full URI path rather than target.

Signed-off-by: Greg Wilkins <[email protected]>
* Issue #4550 XmlConfiguration argument matching

Improve argument matching by:
 + rejecting obviously non matches (with allowance for unboxing)
 + sorting methods so that derived arguments are tried before more generic (eg String before Object)

Signed-off-by: Greg Wilkins <[email protected]>

* Issue #4550 XmlConfiguration argument matching

Improve argument matching by:
 + can unbox from any Number to any Number

Signed-off-by: Greg Wilkins <[email protected]>

* Issue #4550

Do not check the assignability of the arguments.  Instead rely on the order of the methods.

Signed-off-by: Greg Wilkins <[email protected]>

* Issue #4550

unbox test no longer required

Signed-off-by: Greg Wilkins <[email protected]>

* Issue #4550

Simplified test

Signed-off-by: Greg Wilkins <[email protected]>

* Issue #4550

Cleanup comparator

Signed-off-by: Greg Wilkins <[email protected]>

* Issue #4550

Cleanup comparator

Signed-off-by: Greg Wilkins <[email protected]>
…atNow

Issue #4606 - fixing formatTick use of `now`
Signed-off-by: Greg Wilkins <[email protected]>
* Fix NPE in HouseKeeper.stopScavenging

Signed-off-by: Hirotaka Ikoma <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
…er' into jetty-10.0.x-4598-InetAccessHandler
joakime and others added 24 commits March 10, 2020 09:37
Signed-off-by: Greg Wilkins <[email protected]>
+ Also adding note to jetty-util classes that are used by
  jetty-start

Signed-off-by: Joakim Erdfelt <[email protected]>
Issue #4571 - websocket aggregating text and binary MessageSinks
…Writer

Issue #4538 - rework of websocket message reader and writers
Signed-off-by: Lachlan Roberts <[email protected]>
…xception

Issue #4645 - better error message for empty X-Forwarded-Port value
* Refactor CrossOriginFilter

Signed-off-by: Denny Abraham Cheriyan <[email protected]>

* Fix checkstyle violation

Signed-off-by: Denny Abraham Cheriyan <[email protected]>
* Refactor CrossOriginFilter

Signed-off-by: Denny Abraham Cheriyan <[email protected]>

* Fix checkstyle violation

Signed-off-by: Denny Abraham Cheriyan <[email protected]>
@joakime joakime requested a review from gregw March 16, 2020 14:56
…4572-slf4j-logging-part2

Signed-off-by: Joakim Erdfelt <[email protected]>
@joakime joakime merged commit c39897c into jetty-10.0.x-4572-new-slf4j-logger-impl Mar 16, 2020
@joakime joakime deleted the jetty-10.0.x-4572-slf4j-logging-part2 branch March 16, 2020 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants