If you're running as a service, why don't you make use of --StdOutput and 
--StdError as documented here:

http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html

Also, if you're running as a service, the Tomcat Monitor allows you to change 
this at any point. There's a tab called Logging that allows you to set a bunch 
of parameters.

/mde/

--- On Sun, 6/20/10, Bulkan <bul...@gmail.com> wrote:

> From: Bulkan <bul...@gmail.com>
> Subject: tomcat.exe 6.0.18 to 6.0.26 stdout/stderr redirection
> To: users@tomcat.apache.org
> Date: Sunday, June 20, 2010, 6:06 PM
> Hi All,
> 
> Before we upgraded from Tomcat 6.0.18 to 6.0.26 I was able
> to redirect
> stdout/stderr of tomcat.exe using the following Python
> code;
> 
> >>> from subprocess import Popen
> >>> logfile = open('tomcat.log', 'w')
> >>> p = Popen(r'"C:\Program Files\Apache Software
> Foundation\Tomcat
> 6.0\bin\tomcat6.exe"', shell=True, stdout=logfile,
> stderr=logfile)
> 
> but with 6.0.26, the above code fails to redirect the
> output to tomcat.log,
> all of the output goes to the console (cmd.exe).
> 
> Has something changed in 6.0.26 (Windows) that would effect
> this behaviour ?
> 
> Cheers
> ---
> Bulkan Evcimen
> 


      


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to