I have a Spring Boot 2.7.2 web application. The Tomcat access log properties are defined as
server.tomcat.accesslog.enabled=TRUE
server.tomcat.accesslog.directory=log
server.tomcat.accesslog.pattern=%h %l %u [%t] "%r" %s %b "%{Referer}i" "%{User-Agent}i" %D [%I] "%{Host}i"
I'm not using any logback configuration files (like logback.xml or logback-spring.xml).
Locally, when using embedded Tomcat, the access logs are logged as configured. However, when I deploy the application to an external Tomcat, the used access log pattern seems to be a default pattern with less information and looks like this:
%h %l %u [%t] "%r" %s %b
How can I configure the access log pattern in a way that it works for embedded and external Tomcat?