You have the right idea but in the wrong place. You need to define a Logger for each 
Context and put swallowOutput on that.

<Context path="/context"
         override="true"
         swallowOutput="true"
>
<Logger  className="org.apache.catalina.logger.FileLogger"
         prefix="context_log." directory="some/log/directory"
         suffix=".txt" timestamp="true" />
</Context>

-----Original Message-----
From: Ryan Daly [mailto:[EMAIL PROTECTED]
Sent: 27 October 2004 14:17
To: Tomcat Users List
Subject: swallowOutput and catalina.out


All:

Sorry if I've missed a thread regarding this.

I have multiple web applications on a single instance of Tomcat.  I want
to get all of the logging that goes to catalina.out to go to the
individual web app logs.

I'm trying to use swallowOutput, but I'm not sure if I have it in the
right spot.  Something is obviously not configured properly because I
still see output going to catalina.out.

What I have is something like this:


<Host name="blah.blah.com" appBase="path/to/webapp"
        unpackWARs="false" autoDeploy="false">
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
          debug="0" resourceName="users01"/>
        <DefaultContext
          wrapperClass="org.apache.catalina.core.DefaultContext"
          swallowOutput="true"/>
      </Host>


Is this anything close to what I should be doing?  Does swallotOutput go
somewhere else?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to