Again the issue of the logs.
According to:
http://tomcat.apache.org/tomcat-5.5-doc/logging.html
1) I add log4j-1.2.15.jar and commons-logging-1.1.1.jar inside my common/lib
2) I create a log4j.properties inside common/classes with the following content:
log4j.rootLogger=ERROR, R
I just did some more tests.
What happens is:
- Whatever you put in your app log4j property files is what will go to
the catalina.out. There is no such thing as getting a catalina.out
clean.
- You can have a rotateable tomcat.log. But that will be deplicated
from what is already in catalina.out
Kees
That one is another log file, configured at logging.properties:
1catalina.org.apache.juli.FileHandler.level = INFO
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.
On 20/08/2008, Kees Jan Koster [EMAIL
Which are the views of other people in the list?
On 21/08/2008, emerson cargnin [EMAIL PROTECTED] wrote:
Kees
That one is another log file, configured at logging.properties:
1catalina.org.apache.juli.FileHandler.level = INFO
1catalina.org.apache.juli.FileHandler.directory =
Truncating? It should be a rolling file, rolling over daily. You can just
remove the old versions. Is this a stock tomcat, one from the ports, or
maybe a particularly old one?
catalina.out is set at the catalina.sh:
$CATALINA_BASE/logs/catalina.out 21
This file is not rateable, as it is
Dear Emerson,
Truncating? It should be a rolling file, rolling over daily. You
can just
remove the old versions. Is this a stock tomcat, one from the
ports, or
maybe a particularly old one?
catalina.out is set at the catalina.sh:
$CATALINA_BASE/logs/catalina.out 21
This file is not
Just curious if anybody knows how to disable tomcat from logging to
catalina.out, possibly by editing the server.xml file?
True that we can link catalina.out to /dev/null or truncate the file every
now and then, but we prefer to use a more sane approach, than just
truncating the file...
Thanks
Dear Irwan Hadi,
Just curious if anybody knows how to disable tomcat from logging to
catalina.out, possibly by editing the server.xml file?
check out ${tomcat}/conf/logging.conf
True that we can link catalina.out to /dev/null or truncate the file
every
now and then, but we prefer to use a