You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ganu MailList <ga...@gmail.com> on 2011/10/09 04:24:12 UTC

Re: How to save the log info to log file

In windows, How to let the tomcat write the catalina log to the log file,  I
find that in the linux ,the log will be saved to the log file ,
but in the window 7, the log is print  to the console.  how to set ?

Re: How to save the log info to log file

Posted by ganu MailList <ga...@gmail.com>.
Thanks

2011/10/11, Pid <pi...@pidster.com>:
> On 09/10/2011 03:24, ganu MailList wrote:
>> In windows, How to let the tomcat write the catalina log to the log file,
>> I
>> find that in the linux ,the log will be saved to the log file ,
>> but in the window 7, the log is print  to the console.  how to set ?
>
> Install it as a service, configure the Service Manager to output the
> stdout/stderr to a file.
>
>  http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html
>
>
> p
>
>

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


Re: How to save the log info to log file

Posted by Pid <pi...@pidster.com>.
On 09/10/2011 03:24, ganu MailList wrote:
> In windows, How to let the tomcat write the catalina log to the log file,  I
> find that in the linux ,the log will be saved to the log file ,
> but in the window 7, the log is print  to the console.  how to set ?

Install it as a service, configure the Service Manager to output the
stdout/stderr to a file.

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


p


Re: How to save the log info to log file

Posted by Marvin Addison <ma...@gmail.com>.
> In windows, How to let the tomcat write the catalina log to the log file

I was going to suggest setting the CATALINA_OUT environment variable,
but it looks like that's only supported in catalina.sh for Unix hosts.
 If you're starting via startup.bat/catalina.bat, you could edit
catalina.bat to redirect STDOUT to a file.  See around line 286.

M

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