How to send access logs of a embedded tomcat in a dockerized spring boot application to consoleappender of sl4j?

时间:2018-12-03 12:56:54

标签: java spring-boot docker

I have a dockerized completely restful spring boot application and I am using sl4j facade backed by log4j to do application logging. Since its a container and they are ephemeral I am logging to the console (stdout and stderr) and not to any rolling files using a console appender. This log will be directed through a log shipper ultimately to splunk. What do I do of the access.log generated by the embedded tomcat server? If its ok to disable it then its fine. However, if I have to send that log to the console as well how do I do it?

Spring boot : 1.5.9 and log4j2

0 个答案:

没有答案