My application.yml:
server: tomcat: accesslog: enabled: true basedir: my-tomcat
We are using spring boot 1.4.3.RELEASE, and I would like to configure logback-access.xml (in the src / main / resources section) with the following contents:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <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 the access_log.2017-01-03.log file in the my-tomcat folder with the correct access logs, but marking on my coincidence it seems that the logback-access.xml configuration file is not being read.
Any idea?
Eric
source share