简体   繁体   中英

How to enable undertow log in appication.properties in Spring boot

How to enable http server logs in an embedded tomcat server provided by spring boot in undertow ? I've tried this in application.properties but it doesn't create file, neither logs to console

I am looking for something similar like this Spring Boot enable http requests logging

Any help would be appreciated.

Thanks

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

add this code in application.properties

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM