> -----Original Message----- > From: Rony G. Flatscher (Apache) <r...@apache.org> > Sent: Tuesday, March 22, 2022 12:21 PM > To: users@tomcat.apache.org > Subject: Maybe a stupid (Windows related) question > > For debugging purposes I downloaded the zip-version of Tomcat 10.0.18 and > start it up using %CATALINA_HOME%\bin\startup.bat. > > This will create by default a separate process (terminal, commandline > window) in which Tomcat runs and dispatches all output including stdout and > stderr output into that window. > > By contrast the Windows service installation would redirect stdout and stderr > by default to %CATALINA_HOME%\logs\ using "tomcat10-stderr.yyy-mm- > dd.log" and "tomcat10-stdout.yyyy-mm-dd.log" as their name. The same > would be desired for the "startup.bat" version of Tomcat 10. > > Searched > <https://urldefense.com/v3/__https://tomcat.apache.org/tomcat-10.0- > doc/logging.html__;!!F9svGWnIaVPGSwU!73l7pAR1e6xCG3INKjeg0PnyhD7k > yWl2kyHrFKAdlps4BB1jpO4ZbG-apDxsEvad_K823Jw$ > and > <https://urldefense.com/v3/__https://tomcat.apache.org/tomcat-10.0- > doc/setup.html__;!!F9svGWnIaVPGSwU!73l7pAR1e6xCG3INKjeg0PnyhD7ky > Wl2kyHrFKAdlps4BB1jpO4ZbG-apDxsEvadogS4Vco$ > to no avail. Searching > the Internet the best I could find was > <https://urldefense.com/v3/__https://serverfault.com/questions/252934/h > ow-to-redirect-tomcat-console-log-to-files-tomcat-started-via-windows- > bat__;!!F9svGWnIaVPGSwU!73l7pAR1e6xCG3INKjeg0PnyhD7kyWl2kyHrFKA > dlps4BB1jpO4ZbG-apDxsEvadZtWA7FE$ > which indeed redirects the Tomcat > startup information to %CATALINA_HOME%\logs\catalina.yyyy-mm-dd.log, > but not stdout and stderr which do not get redirected. > Using redirections directly in "startup.bat" or "catalina.bat" as suggested > further down in the serverfault.com did not yield the desired redirection. > > Probably I have been doing something wrong in the past hours and not > seeing the forest for the trees anymore I kindly request help: what is needed > to successfully redirect stderr and stdout to %CATALINA_HOME%\logs after > unzipping Tomcat 10 and starting it on Windows using > %CATALINA_HOME%\bin\startup.bat? > > TIA for any help/pointer! > > ---rony > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org
Would it not be best to use CATALINA_BASE instead of CATALINA_HOME? The idea being that HOME should be the binaries, and BASE is mobile.... Just my .02 worth. Thanks, Dream * Excel * Explore * Inspire Jon McAlexander Infrastructure Engineer Asst Vice President He/His Middleware Product Engineering Enterprise CIO | EAS | Middleware | Infrastructure Solutions 8080 Cobblestone Rd | Urbandale, IA 50322 MAC: F4469-010 Tel 515-988-2508 | Cell 515-988-2508 jonmcalexan...@wellsfargo.com This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org