As you are using embedded tomcat so might be you can help me.
I am starting the tomcat using
some code
tomcat.start();
some code
and tomcat is getting started successfully but tomcat logs (talking about tomcat specific logs) are not getting generated in tomcat log folder.But when i start non embaded tomcat(through startup.sh) then logs are getting generated in log folder of tomcat.
Do you have any idea.whats the issue.Do we need to specify the path(or enable logs) programatically in case of embedded tomcat.
Look at
catalina.sh– it has parameterCATALINA_OUT, sayingThen later in the same script, it is used like this:
So, as you can see, Tomcat startup script redirects stdout to the
catalina.out.If you run Tomcat yourself, redirect its stdout elsewhere or look at
LOGGING_CONFIGparameter how to override this.