I have done something according to http://www.oracle.com/technology/products/jdev/tips/mills/Struts-logging.html I do not put the 2 jars in tomcat common lib. Instead I keep them in my webapp lib. The result is lots of error message in tomcat log dir. If I put a log4j.properties in web-inf/classes and still keep the 2 jars in my webapp lib only, is the log.debug() prints message in tomcat log dir? thanks
On 11/3/05, andy gordon <[EMAIL PROTECTED]> wrote: > > Placing the jars in the common/lib directory makes them available for all > web apps and catalina itself. Placing log4j properties in the common/classes > lib defines log4j behavior for all web apps (cross context). Placing log4j > properties in web-inf/classes overrides cross context log4j properties for a > specific web app. > > What is the purpose of the commons-logging.properties file ? There is no > requirement for this file according to the 5.5 doc. > > hope this helps. > > - andy > pc leung < [EMAIL PROTECTED]> wrote: > http://tomcat.apache.org/tomcat-5.5-doc/logging.html > The above page shows that logging-log4j.jar and commong-logging.jar > needs to put in $CATALINA_HOME/common/lib. > If I have two files of jar already in my struts webapp lib, > Why do I still need to place them in $CATALINA_HOME/common/lib? > In addition, the tomcat doc web page shows the log4j.properties only, > is the common-logging.properties not necessary? > Thanks > > > --------------------------------- > Yahoo! FareChase - Search multiple travel sites in one click. >