Thanks a lot for quick reply!
To conclude:
1. stdout can NOT be redirected to multiple files and can be only in one file (usually catalina.out) 2. All uncaught exceptions / System.out from ALL applications are going to this one file. And we can not do anything about this.

Right?

*************************************
Best Regards
Ilja


Gregor Schneider wrote:
One option is to use log4j (http://logging.apache.org/log4j).
you can specify loggers for each application writing to pre-defined locations.

however, you will also have to maintain some disciplin, since log4j or
the java-logging-api are not able to redirect stdout. That means: Do
not use System.out / System.err but use your preferred logger instead.

Unfortunately, some central applications (like commons.pool f.e.) do
not care about any loggers but just dump their output to System.out.

You could specify in $catalina_home/commons/classes/log4j.xml a logger
based on the classnames that produces the output, however, if those
central components just use System.out/err instead of logging, you
will have to live with this.

Anyways, moving your applications to log4j / [enter your preferred
logging-api here] is a great step into the right direction, esp. if
you want to destinguish between error-weight of the message and the
source where this message came from.

Cheers

Gregor


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to