Log into separate files with SLF4J on AWS

2

Has anyone implemented a log using SLF4J to enable the application to separate files by tenant in Amazon environment?

I made this implementation in my application, in tomcat running local log files are generated normally, however when I deploy to Amazon and later download the logs, the files are not generated, the outputs end up going to catalina.out .

    
asked by anonymous 29.01.2016 / 17:06

2 answers

2

I solved the problem by defining the path that matches the structure that the logs are stored in Amazon tomcat.

I made the following change in the configuration file of my filter.

<File>/var/log/tomcat8/nomedoarquivo.log</File>

link

    
02.02.2016 / 16:47
1

Locally you should have settings that need to be made in tomcat, such as jars in the classpath and JVM parameters, which can be configured by the Elastic Beanstalk .ebextensions / *. config files, see link

    
01.02.2016 / 23:11