In this paragraph it is stated:

Access logging for Undertow can be configured in a similar fashion, as shown in the following example:

yaml server: undertow: accesslog: enabled: true pattern: "%t %a %r %s (%D ms)"

However, the %D RESPONSE_TIME exchange attribute does not work "out of the box" with Spring Boot (at least for me with spring-boot-starter-parent 2.3.8.RELEASE).

I needed to also add the following:

server
  undertow:
    options:
      server:
        record-request-start-time: true

Should the docs be updated to reflect this?

Thanks :)

Comment From: barryzpc

In this paragraph it is stated:

Access logging for Undertow can be configured in a similar fashion, as shown in the following example: yaml server: undertow: accesslog: enabled: true pattern: "%t %a %r %s (%D ms)"

However, the %D RESPONSE_TIME exchange attribute does not work "out of the box" with Spring Boot (at least for me with spring-boot-starter-parent 2.3.8.RELEASE).

I needed to also add the following:

server undertow: options: server: record-request-start-time: true

Should the docs be updated to reflect this?

Thanks :)

I couldn't agree with you more, and you solved my problem. thank you