Log into separate files with SLF4J in AWS

Asked

Viewed 88 times

2

Someone has already implemented log using SLF4J to enable the application to separate files by tenant in Amazon environment?

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

  • 1

    What type of deploy do you make: direct on EC2? Elastic Beanstalk? Cloudformation? Most of my problems with logs reside in missing paths or lack of access permission.

  • Elastic Beanstalk

2 answers

2


1

  • I will try to check if I need any additional configuration, however I am finding that my application is not able to record other log files by not finding folder structure similar to Tomcat location, for example on my local machine configure for the files to be in .. /logs/filename.log, but when downloading the log on Amazon does not come in this structure, the unzipped folder is var/log/tomcat8/...

  • Yes, it depends on whether Voce installs by . rpm (Eb) or . zip (vc)... how nice that you found the problem.

  • Yes, anyway thank you for your attention. : D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.