swallowOutput="true" in Tomcat 5.5

View: New views
1 Messages — Rating Filter:   Alert me  

swallowOutput="true" in Tomcat 5.5

by shandor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I folowed the documentation and set up a log4j logger in my context, as well
as set swallowOutput="true" on the context
so all System.out statements will find their way to the log file.
It works fine for servlets ( Any System.out inside a servlet will be written
to the log file instead the standard out - cool ! )
However, this does not work for classes which arenot servlets that runs in
the container ( backing beans etc. )
All System.out in non-servlets classes still go to the console.

What am I doing wrong ?

Thanks
LightInTheBox - Buy quality products at wholesale price