This is how I did it before implementing log4j.

Remember, the TC logger is going away in 5.5x....


<Context path="/myapp" 
         docBase="c:\\apps\\myapp" 
         debug="0" 
         crossContext="false"  
         reloadable="false" 
         privileged="false" 
         swallowOutput="true">
    <Logger className="org.apache.catalina.logger.FileLogger"     
            directory="c:\\tomcat\\logs"  
            prefix="myapp_log." suffix=".txt"
            timestamp="true"/>
</Context>












On Wed, 2004-10-27 at 09:16, Ryan Daly wrote:
> 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]
> 
> 


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

Reply via email to