-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Igor,
sorry for answering this late, I was quite busy the last days.... On 04/19/2011 09:04 AM, Igor Cicimov wrote: > Hi Thomas, > > Yes I have reference in the catalina.sh to the log4j.properties file: > > LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/log4j.properties" > > this is what I get in the catalina.out on restart: Ok to round thinks up, you have do not set the correct system property for log4j configuration, this is one problem (correct one is: log4j.configuration, as I wrote in my previous mail). > INFO: Configuring Log4j from File: > /data/apache-tomcat-6.0.29/webapps/application/WEB-INF/etc/log4j-configuration.xml > 19/04/2011 4:16:24 PM org.apache.catalina.core.ApplicationContext log > INFO: Log4J context Initialized > > where log4j-configuration.xml is the application XML file located as given > in the above log line. So that is being loaded ok. Your application uses a custom placed log4j configuration file, setting the log4j property will break this, but if you follow the advices in the docs (don't set the property, instead place your log4j.properties in $CATALINA_HOME/lib (or for more recent versions of Tomcat in $CATALINA_BASE/lib). For using log4j with Tomcat you need some additional files (read the documentation carefully: http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j). > If I remove CONSOLE from the list of root loggers, isn't this going to > prevent anything from being logged in the catalina.out file? I would like to > keep the useful info from the restart process. Yes it will prevent any log4j lines from being logged to catalina.out. Just look in the real log files. Please don't top post, it really confused me, when I was rereading this mail. HTH and regards, - -- Thomas Freitag -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk25vGcACgkQGE5pHr3PKuUCZACfSNhMJ3aKb1Y2Chy5dI2kp7pw uSsAmwRxzqK0hm0WFisviccmO7oF6F3/ =BKkV -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
