You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Sreedhar, Dantam" <Da...@deshaw.com> on 2003/04/22 17:03:15 UTC
Log Rolling and Context specific Logging
Hi,
I added following lines to server.xml file with the hope that all logging
messages of "search" context path would be logged to desearch_log* logging
file. But STDOUT and STDERR of this context path has been logging to
catalina.out file.
I have two questions,
1. How can I redirect context path specific STDOUT and STDERR to specific
file? (Is this possible at all?)
2. How to implement Log Rolling in Tomcat?
<Context path="/search" docBase="./search.war" debug="0"
reloadable="false" crossContext="false">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="desearch_log_" suffix=".txt"
timestamp="false"/>
</Context>
Any help on this is highly appreciated.
Thanks in advance,
-Sreedhar
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Log Rolling and Context specific Logging
Posted by Rick <pl...@yahoo.com>.
On your <Conext tag add
swallowOutput="true"
this will send the stdout and stderr to the file you
destinated.
I did this also but when it redeploy my add the
Context element for my app is reset.
have you seen this behavior.
--- "Sreedhar, Dantam" <Da...@deshaw.com>
wrote:
> Hi,
>
> I added following lines to server.xml file with the
> hope that all logging
> messages of "search" context path would be logged to
> desearch_log* logging
> file. But STDOUT and STDERR of this context path has
> been logging to
> catalina.out file.
>
> I have two questions,
> 1. How can I redirect context path specific STDOUT
> and STDERR to specific
> file? (Is this possible at all?)
> 2. How to implement Log Rolling in Tomcat?
>
> <Context path="/search" docBase="./search.war"
> debug="0"
> reloadable="false"
> crossContext="false">
> <Logger
> className="org.apache.catalina.logger.FileLogger"
> prefix="desearch_log_"
> suffix=".txt"
> timestamp="false"/>
> </Context>
>
> Any help on this is highly appreciated.
>
> Thanks in advance,
> -Sreedhar
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>
=====
Use the link below to send a Nice Card today!
http://nicecards.com/partner.cgi?p15602
please reply to pluto26@altavista.net
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org