Skip to content

Commit c500d8e

Browse files
committed
Note need to record req start time to use %D with Undertow access log
Closes gh-31103
1 parent 591cd0f commit c500d8e

File tree

1 file changed

+5
-0
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto

1 file changed

+5
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/webserver.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,13 @@ Access logging for Undertow can be configured in a similar fashion, as shown in
398398
accesslog:
399399
enabled: true
400400
pattern: "%t %a %r %s (%D ms)"
401+
options:
402+
server:
403+
record-request-start-time: true
401404
----
402405

406+
Note that, in addition to enabling access logging and configuring its pattern, recording request start times has also been enabled.
407+
This is required when including the response time (`%D`) in the access log pattern.
403408
Logs are stored in a `logs` directory relative to the working directory of the application.
404409
You can customize this location by setting the configprop:server.undertow.accesslog.dir[] property.
405410

0 commit comments

Comments
 (0)