'Console Logging in Spring Boot with undertow embedded server

I am trying to get access log of an embedded undertow server from spring boot > 2.0 to stdout of an container. With embedded tomcat spring properties can work, but the same does not for undertow server. I tried modifying server.undertow.accesslog.* properties and tried configuring directory to /dev/stdout but unfortunately this error out.

Any suggestions how can I redirect undertow access logs to console?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source