Closed
Description
In Jetty 9.4.15, NSCARequestLog
has been deprecated and CustomRequestLog
introduced as its replacement. We need to migrate to CustomRequestLog
, making any necessary property updates when we do so. Assigning to 2.2.x for now but, depending on the updates that are necessary, we may want to do this in one or more of our current maintenance branches.
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
umeshrawat commentedon Apr 2, 2019
@wilkinsona Can I take this up?
wilkinsona commentedon Apr 3, 2019
Thanks for the offer. We're not yet sure what needs to be done. If you'd like to spend some time looking at the differences between
NSCARequestLog
andCustomRequestLog
and seeing how well our current properties map to the latter, that would be much appreciated.bclozel commentedon May 10, 2019
I've had a look and it seems that all properties related to the
RequestLog
itself are now gone in favor of the format string. Properties related to the writer are still available.I think we should deprecate all the removed keys in favor of new
format
andcustomFormat
keys:The
CustomRequestLog
javadoc is the reference for this format.I've got a change (almost) ready with all of this. Judging from the required changes, 2.2.x seems to be the right target. Is that what you had in mind @wilkinsona ?
wilkinsona commentedon May 11, 2019
Thanks, @bclozel. Yeah, given the extent of the changes, 2.2.x sounds right to me. It might be tricky to do it in a non-breaking manner, but I don't think we should wait for 3.0.
Vidz51 commentedon Sep 14, 2021
I upgraded my spring boot version to 2.5, Now I cant set timezone in application.properties.
This key is removed.
server.jetty.accesslog.time-zone=IST
What is the way of setting the time zone through application.properties in my application?
wilkinsona commentedon Sep 14, 2021
CustomRequestLog
doesn't have a setter for the timezone. I believe Jetty now allows it to be configured via the%t
setting in its format. You can set the format using the newserver.jetty.accesslog.custom-format
. If you have any further questions, please follow up on Stack Overflow or Gitter. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.