mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Note need to record req start time to use %D with Undertow access log
Closes gh-31103
This commit is contained in:
parent
591cd0feb3
commit
c500d8e784
@ -398,8 +398,13 @@ Access logging for Undertow can be configured in a similar fashion, as shown in
|
||||
accesslog:
|
||||
enabled: true
|
||||
pattern: "%t %a %r %s (%D ms)"
|
||||
options:
|
||||
server:
|
||||
record-request-start-time: true
|
||||
----
|
||||
|
||||
Note that, in addition to enabling access logging and configuring its pattern, recording request start times has also been enabled.
|
||||
This is required when including the response time (`%D`) in the access log pattern.
|
||||
Logs are stored in a `logs` directory relative to the working directory of the application.
|
||||
You can customize this location by setting the configprop:server.undertow.accesslog.dir[] property.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user