-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Support for access log in Vert.x HTTP #7898
Conversation
e8bcafc
to
d46578e
Compare
|
||
private static final String COMMON_LOG_PATTERN = "[dd/MMM/yyyy:HH:mm:ss Z]"; | ||
|
||
private static final ThreadLocal<SimpleDateFormat> COMMON_LOG_PATTERN_FORMAT = new ThreadLocal<SimpleDateFormat>() { |
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.
Can we use DateTimeFormatter.ofPattern
instead?
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.
This is all just copied from Undertow, there are probably lots of things that could be better.
Looks like it needs to be rebased |
d46578e
to
a7d7229
Compare
rebased |
@ia3andy could you test that one and validate things are working properly? The code is coming from an existing codebase so it's mostly about validating that the glue works and we get an access log with Quarkus when configuring things. |
@gsmet sure! |
@gsmet never mind :) (I removed the pollution) |
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.
It works great!
I would add another config property boolean logToFileEnabled
and give a default value to baseFileName
, IMO it would make it simpler to understand. If you don't agree, I at least suggested changes to the doc.
extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/AccessLogConfig.java
Outdated
Show resolved
Hide resolved
extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/AccessLogConfig.java
Outdated
Show resolved
Hide resolved
a7d7229
to
d4328e6
Compare
Shouldn't license headers and |
d4328e6
to
7b9c133
Compare
I removed them, should be ready to merge now. |
Fixes #5556