Skip to content

Conversation

@jlouvel
Copy link
Collaborator

@jlouvel jlouvel commented Oct 29, 2024

The aim

By default Restlet application logging doesn't go thru the Servlet logging mechanism, but through the JVM mechanism.

The solution

In addition to using JULI logger facade in regular Java SE environments, this enhancements dynamically set a special facade if the Restlet Engine is created by a ServerServlet, allowing the default behavior to be overridden.

  • PR size
    • Under 300 lines ✅
    • Can't be split without complicating the process even more
  • Tests
    • Added
    • Not applicable (why?)
  • Doc
    • Added
    • Not applicable
  • Reviewer
    • Asked for a review
    • Added label DO NOT REVIEW

In addition to using JULI logger facade in regular Java SE environments, this enhancements dynamically set a special facade if the Restlet Engine is created by a ServerServlet, allowing the default behavior to be overridden.
@jlouvel
Copy link
Collaborator Author

jlouvel commented Oct 29, 2024

@thboileau Could you review this contribution? Does the logic look good? I haven't done any testing yet.

Copy link
Contributor

@thboileau thboileau left a comment

Choose a reason for hiding this comment

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

lgtm

@jlouvel jlouvel merged commit 1068d6d into 2.5 Oct 30, 2024
1 check failed
@jlouvel jlouvel deleted the 2.5-servlet-logging-facade branch October 30, 2024 02:32
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.

3 participants