Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 85007 invoked from network); 14 Oct 2006 12:22:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2006 12:22:23 -0000 Received: (qmail 75510 invoked by uid 500); 14 Oct 2006 12:22:18 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 75476 invoked by uid 500); 14 Oct 2006 12:22:18 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 75465 invoked by uid 99); 14 Oct 2006 12:22:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Oct 2006 05:22:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [82.209.166.4] (HELO smtp.bredband2.net) (82.209.166.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Oct 2006 05:22:17 -0700 Received: (qmail 15374 invoked from network); 14 Oct 2006 12:14:23 -0000 Received: from me-23-111-233-83.3.cust.bredband2.com (HELO [192.168.0.100]) ([83.233.111.23]) (envelope-sender ) by smtp.bredband2.net (qmail-ldap-1.03) with SMTP for ; 14 Oct 2006 12:14:23 -0000 Message-ID: <4530D666.1010708@apache.org> Date: Sat, 14 Oct 2006 14:21:58 +0200 From: Dennis Lundberg User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: using commons-logging in webapp w/ log4j, can't find my properties References: <4530735D.7080605@gridsphere.org> In-Reply-To: <4530735D.7080605@gridsphere.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jason Novotny wrote: > > Hi, > > I have a webapp and I have deployed common-logging-1.1 jar and > log4j-1.2.11 in my WEB-INF/lib directory of my webapp. I have also place > a log4j.properties file in my WEB-INF/classes directory. However, when > the webapp runs, I see only INFO level is being logged. It all worked > fine when I placed some line of the form > > PropertyConfigurator.configure(url); > > which forces a log4j to use the supplied config file, however I didn't > think this was necessary-- > > Any help is greatly appreciated! > > Thanks, Jason Hi Jason We have been using a setup just like yours on Tomcat for a long time. Recently we switched from log4j.properties to log4j.xml and just place the xml file in WEB-INF/classes as well. What container are you running your application on? -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org