Hi Shankar,
I am not using System.out commands in my webapps.
for some reason, the log4j messages are being appended to catalina.out
I have log4j set up in my application which sends logging output to a
specified file, but it also gets sent to catalina.out
How do I stop this?
also, is there a
Rizwan Merchant wrote:
So how do I stop tomcat from logging to catalina.out and into a
different file?
For the webapps themselves, their should have
swallowOutput="true".
Better still, don't do System.out.println() from your webapps..
-
Thanks for the response.
So how do I stop tomcat from logging to catalina.out and into a
different file?
Basically I want to send all tomcat output to a file that can roll on a
daily basis.
Any ideas or examples?
Thanks,
-Riz.
David Smith wrote:
Catalina.out is the redirected standard output
Catalina.out is the redirected standard output (Console output in log4j
parlance) of tomcat. I don't think you can roll it in log4j. Best bet
is to steer as much logging as possible away from catalina.out into a
file logger you can roll.
--David
Rizwan Merchant wrote:
Hi,
We are trying t
Hi,
We are trying to use log4j to roll the catalina.out file on a daily
basis. The attached log4j.properties file has been placed in the
CATALINA_HOME/common/classes directory. But the file does not roll over.
Please help. catalina file is getting long.
Thanks,
-Riz.
#
# Configures Log4j as