Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 4688 invoked from network); 17 Sep 2002 04:23:04 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 17 Sep 2002 04:23:04 -0000 Received: (qmail 2571 invoked by uid 97); 17 Sep 2002 04:23:39 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 2539 invoked by uid 97); 17 Sep 2002 04:23:38 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 2527 invoked by uid 98); 17 Sep 2002 04:23:37 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: =?iso-8859-1?Q?Ren=E9_Eigenheer?= To: "'Struts Users Mailing List'" Subject: RE: log4j props not getting pick up Date: Tue, 17 Sep 2002 06:23:51 +0200 Message-ID: <000e01c25e02$08d5cc90$c901a8c0@bridgeere001> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20020916190158.408372FD4D@server3.fastmail.fm> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I had the same problem with 1.1b2 and Tomcat 4.0.4 I solved it with changing the sequence of log4j.jar and commons-logging.jar in my classpath Rene > -----Original Message----- > From: Kurt Wiersma [mailto:kwiersma@fastemailer.com] > Sent: Montag, 16. September 2002 21:02 > To: struts-user@jakarta.apache.org > Subject: log4j props not getting pick up > > > I am try to use commons-logging (I have version 1.0.1) with struts > 1.1b2 under Tomcat 4.1.8. I get my log statements outputed to the > %CATALINA_HOME/logs/catalina.out (which is stout?) just fine. However > the log4j rolling log file that I have specified doesn't get created. > Furthermore the format of the log message in catalina.out is not the > same as what I specified in my log4j.properties. I think that my lo4j > properties aren't being picked up. > > In my action class I get a logger like this: > > private Log log = new LogFactory("com.kdub.DIS"); > > My commons-logging.properties located in WEB-INF/classes looks like > this: > > org.apache.commons.logging.Log=org.apache.commons.logging.impl > .Log4JCategoryLogyImpl > org.apache.commons.logging.LogFactory=org.apache.commons.loggi > ng.impl.Log4jFactory > > My log4j.properties located in WEB-INF/classes looks like this: > > log4j.rootLogger=DEBUG,stdout,R > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > > # Pattern to output the caller's file name and line number. > log4j.appender.stdout.layout.ConversionPattern=%p [%t] [%c] > %C{1}.%M(%L) | %m%n > > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.File=/usr/local/tomcat/logs/dis-log.txt > > log4j.appender.R.MaxFileSize=100KB > log4j.appender.R.MaxBackupIndex=1 > > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n > > log4j.logger.org.apache=INFO > log4j.logger.org.apache.commons=WARN > > Any suggestions on this is happening would be most appreciated! :) > > Thanks, > > --Kurt > > -------------------------------------------- > Kurt Wiersma > Software Developer > http://www.stolaf.edu/people/wiersma/ > kwiersma@fastemailer.com > -------------------------------------------- > > -- > http://fastmail.fm - Access all of your messages and folders wherever > you are > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > -- To unsubscribe, e-mail: For additional commands, e-mail: