maybe redirect stderr to stdout then redirect to the log: startup.bat 2>&1 1>yourFile.log I believe that kind of redirection works in Windows as well as Linux (but it's been a while since I had to do that sort of thing in Windows, so I may be mistaken)
On Tue, Mar 22, 2022 at 11:26 AM Rob Sargent <rsarg...@xmission.com> wrote: > > > On 3/22/22 11:21, Rony G. Flatscher (Apache) wrote: > > 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://tomcat.apache.org/tomcat-10.0-doc/logging.html> and > > <https://tomcat.apache.org/tomcat-10.0-doc/setup.html> to no avail. > Searching the Internet the best > > I could find > > was > > < > https://serverfault.com/questions/252934/how-to-redirect-tomcat-console-log-to-files-tomcat-started-via-windows-bat > > > > 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 > > > Maybe startup.bat > your.log > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Noelette Stout ITS Enterprise Applications - Senior Application Administrator Idaho State University E-mail: stounoel "at" isu "dot" edu Desk: 208-282-2554