2011/10/19 Silvia Righini <shigure.minaz...@gmail.com>: > Hi everyone, > > I'm trying to tell tomcat to use log4j for its internal logging, but it just > ignores me.. > I have Tomcat 6.0.33 running on a Mac OS X 10.5.8 (with java openjdk version > "1.6.0-internal"). > > I followed to the letter the docs at > http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j > I put log4j.properties (copy and paste right from the docs) in > /usr/local/tomcat/lib, got log4j-1.2.16.jar in /usr/local/tomcat/lib, and > put tomcat-juli-adapters.jar and (new) tomcat-juli.jar in > /usr/local/tomcat/bin.
IIRC, adapters should go into lib. They wouldn't be found if they are in bin. > I deleted logging.properties. As I start tomcat (through startup.sh) it > tells me $CATALINA_HOME and $CATALINA_BASE are both set to > /usr/local/tomcat, so I just skipped point 5 of the docs. > > At this point, Tomcat just logs to catalina.out. > Whatever i put in log4j.properties just gets ignored (i changed the > conversion pattern, and the file name of the log files and restarted tomcat, > but no change.. tomcat logs as it always did.. and to catalina.out alone > now). > > I added -Dlog4j.debug to $JAVA_OPTS in catalina.sh, but i don't get any > output from it. I have a project on Tomcat that gets correctly deployed and > uses log4j (with its own log4j.properties in its war/classes), and for this > project i can see the result of -Dlog4j.debug, but nothing regarding Tomcat > itself. > > This issue is driving me crazy, any hint is appreciated! :) > Thanks > > Silvia > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org