Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 66412 invoked from network); 19 Sep 2006 20:15:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 20:15:58 -0000 Received: (qmail 77319 invoked by uid 500); 19 Sep 2006 20:15:49 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 77308 invoked by uid 500); 19 Sep 2006 20:15:48 -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 77297 invoked by uid 99); 19 Sep 2006 20:15:48 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 13:15:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([82.209.166.4:23398] helo=smtp.bredband2.net) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id AB/1A-28275-CEF40154 for ; Tue, 19 Sep 2006 13:15:42 -0700 Received: (qmail 20313 invoked from network); 19 Sep 2006 20:08:50 -0000 Received: from me-179-122-233-83.3.cust.bredband2.com (HELO [192.168.0.100]) ([83.233.122.179]) (envelope-sender ) by smtp.bredband2.net (qmail-ldap-1.03) with SMTP for ; 19 Sep 2006 20:08:50 -0000 Message-ID: <45104FED.7020607@apache.org> Date: Tue, 19 Sep 2006 22:15:41 +0200 From: Dennis Lundberg User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: settings log4j settings programmatically References: <20060919185200.47068.qmail@web56602.mail.re3.yahoo.com> In-Reply-To: <20060919185200.47068.qmail@web56602.mail.re3.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jesse Vitrone wrote: > The application I work on currently uses Log4j, we at startup, we do this: > > * read in xml file with log4j settings (similar to log4j.properties, but this xml has environment dependant settings). > * use our framework to parse the XML and return a Properties object with the right settings for that environment. > * call PropertyConfigurator.configure(props); > > I'm trying to use Axis 1.4, which uses Commons Logging and I'm trying turn on debugging for org.apache.axis.transport.http.HTTPSender. I'm not seeing the Axis logging when I add org.apache.axis.transport.http.HTTPSender into our config file. > > I believe I'm having trouble because we are manually configuring Log4j, and Commons Logging isn't finding a log4j.properties file (since we don't use one). Is there a way to programmatically configure Commons Logging so that when Axis uses Commons Logging which uses Log4j, it gets our config? > > Thanks in advance. Commons logging does not try to find configuration files for log4j. That job is left to log4j to do. So I guess asking on one of the mailing lists for logging.apache.org would give you better results. From what I can tell by your description the question you want to ask them is "How can we make a custom configuration handler for log4j?" -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org