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

Added a way to dynamically set the logger facade #1431

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

jlouvel
Copy link
Member

@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
Member 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.

2 participants