Hello Bill,

Bill Comer wrote:
> we have recently taken management of a web application that uses
> log4j. I am used to using java.util.logging.Logger
>
> I have setup the log4j.xml so that the logging messages go to the
> standrad tomcat log file.
>
> However stack traces still go to catalina.out.
>
> How can I get them to go to the tomcat log ?
>
If I understand you correctly:
You want to redirect System.out or System.err. If so, there is a
non-standard class
available:
http://svn.apache.org/viewcvs.cgi/logging/sandbox/log4j/contribs/trunk/JimMoore/
Take care that you do not build a logging loop (log4j -> ConsoleAppender ->
LoggingOutputStream -> log4j)

Regards
Boris

Extensions for java.util.logging
http://www.x4juli.org


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

Reply via email to