0

I had a JavaSE app with main() method. I need to run it in a cloud. A good choice is Jelastic. So I converted my project to Dynamic Web project (Project Facets in Eclipse), created a ServletContextListener and put all my code from main() in that Servlet contextInitialized() method. My code has System.out.println and logging (slf4j) statements - In my Eclipse IDE I see all that output in console view. But as I deploy the project in Tomcat in the cloud - I am totally lost where too look for console output. I guess it is somewhere in the logs, but I cannot find those logs...

  • What cloud provider? What operating system? Do you have access to the machine (i.e. via ssh or remote desktop)? – stdunbar Apr 23 '18 at 20:47

2 Answers2

1

If you are looking for tomcat logs in Jelastic then just hover on the application server and press "Log" button.

Tomcat Logs in Jelastic

Ruslan
  • 395
  • 3
  • 12
0

Tomcat doesn't redirect the console logs to a file, to do that you need to use logging tools like log4j for example, or once you start your tomcat you can redirect the output to a file check this and this for more information.

Akhadra
  • 419
  • 3
  • 10