-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Add request log to log configuration #4755
base: develop
Are you sure you want to change the base?
Conversation
@line-o just out of curiosity have you actually been able to confirm that the old request.logs no longer exist? I'd hate for us to log this stuff in two locations |
@duncdrum since the old configuration for jetty request logs was replaced I am sure the old log files are no more. |
@duncdrum also out of curiosity: what are the implications on running existdb in docker when it comes to request logs appended to exist.log and/or STDOUT? |
none really, write access to the container filesystem is the same irrespective of path or filename. Since this is easily user configurable its just a question of what you prefer as a default. Personally i m leaning towards just logging to standard out, and leave the files alone. |
a9a25c9
to
808577d
Compare
From yesterdays community call:
|
Kudos, SonarCloud Quality Gate passed! |
While I share @reinhapa 's concern about flooding the Yet, getting the requests to be logged within the log4j logs that control all this in the first place, is a precondition and a separate step in my mind. So I would merge this PR first, and tackle the broader refactoring of the default logs later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the discussion. This is a good first step. But likely requires fine tuning afterwards. Good to go into develop from my side
I don't think this is ready yet. There should be a jetty request log in the same way we previously had, I'm not certain that log4j is the correct place to handle this. Instead we may just need a tweak to the jetty config files (if something changed around lodging config between jetty 9 and 11) |
As discussed in today's Community Call, we should resolve the request logging situation before the release of eXist 7, since users expect request logs to be stored in |
Description:
With the update to jetty 11 request logs are now implicitly written to exist.log (the exist.core appender to be more accurate).
This PR adds the requestLogger explicitly to the log4j configuration along with some comments.
It also appends the request log to
STDOUT
so that when existdb is started on the command line those requests willbe available right after the notification that jetty has started:
Reference:
change introduced in c7083be
Type of tests:
none