tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Yet another swallowOutput question
Date Wed, 23 Sep 2009 13:20:38 GMT
Vinicius Carvalho wrote:
> Thanks Mark, do I have to set it for each context I have? I'm using
> several Hosts with few contexts on each.

Yes, but there is a short-cut. Set it in CATALINA_BASE/conf/context.xml
and it should apply to all contexts on that instance.

Mark

> 
> Regards
> 
> On Fri, Sep 18, 2009 at 4:18 PM, Mark Thomas <markt@apache.org> wrote:
>> Vinicius Carvalho wrote:
>>> Hello there! I'm trying to redirect some legacy System.out calls in
>>> our app to a different logger. Since tomcat's logging implementation
>>> does not allow one to configure the maximum size of the catalina.out,
>>> we are easily reaching gigabytes of space on that file.
>>>
>>> I thought that by just adding:
>>>
>>>  <Host name="localhost"  appBase="webapps"
>>>             unpackWARs="true" autoDeploy="true"
>>>             xmlValidation="false" xmlNamespaceAware="false"
>>> swallowOutput="true">
>>>
>>> Would solve my problems, but, after re-starting the server and calling
>>> a servlet that deliberate calls system.out, the catalina out gets all
>>> the output
>> Unsurprising, given that swallowOutput is not a valid attribute for a
>> Host element. You want Context.
>>
>> Mark
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 




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


Mime
View raw message