My application.yml is :
server:
tomcat:
accesslog:
enabled: true
basedir: my-tomcat
We use spring boot 1.4.3.RELEASE and I would like to configure a logback-access.xml ( under src/main/resources) with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- always a good activate OnConsoleStatusListener -->
<statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%h %l %u %user %date "%r" %s %b</pattern>
</encoder>
</appender>
<appender-ref ref="STDOUT" />
</configuration>
I can see an access_log.2017-01-03.log file under my-tomcat folder with the right access logs but noting on my concole, it seems the configuration file logback-access.xml is not read.
Any idea ?
Eric