On Wed, 6 Nov 2002, Luigi Tenti wrote:

> Date: Wed, 6 Nov 2002 17:03:53 +0100
> From: Luigi Tenti <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: tomcat 4.1 stdout
>
>
> I'm trying to setup tomcat 4.1 to write stdout of different webapp to
> different log files, but it keeps to write everything to catalina.out.
>

The System.err and System.out streams are global to an entire JVM, not
specific to a webapp.  The simplest way to get per-webapp log info is to
use the ServletContext.log() methods, and embed a <Logger> element inside
the <Context> element for each webapp which points at different log files.
Details are in the server config documentation.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/

> Can you help me ?
>
> Thanks a lot
>
> Luigi Tenti

Craig


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to