Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@www.apache.org Received: (qmail 92245 invoked from network); 3 Oct 2003 19:20:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Oct 2003 19:20:08 -0000 Received: (qmail 50941 invoked by uid 500); 3 Oct 2003 19:19:48 -0000 Delivered-To: apmail-jakarta-log4j-user-archive@jakarta.apache.org Received: (qmail 50901 invoked by uid 500); 3 Oct 2003 19:19:47 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 50843 invoked from network); 3 Oct 2003 19:19:47 -0000 Received: from unknown (HELO n25.grp.scd.yahoo.com) (66.218.66.81) by daedalus.apache.org with SMTP; 3 Oct 2003 19:19:47 -0000 X-eGroups-Return: Jeffrey.chavis@jhuapl.edu Received: from [66.218.67.173] by n25.grp.scd.yahoo.com with NNFMP; 03 Oct 2003 19:19:52 -0000 Date: Fri, 03 Oct 2003 19:19:51 -0000 From: "jeffrey_chavis" To: log4j-user@jakarta.apache.org Subject: Re: log4j xml configuration Message-ID: In-Reply-To: <5.2.1.1.0.20031003193547.0193a668@mail.qos.ch> User-Agent: eGroups-EW/0.82 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Yahoo Groups Message Poster X-Originating-IP: 128.244.74.174 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N OK, I added a file named log4j.xml to a directory in the classpath and this works wonderfully. The next question is I want to use the PropertyConfigurator to load a named config file. When I pass the PropertyConfigurator a non-xml file it works, but if I pass it an xml file it does not. Is there something I need to do in the PropertConfigurator to get it to load an XML file Here is the code i use to pass the filename to the PropertyConfigurator String userDir = System.getProperty("user.dir","test"); String fileSeparator = System.getProperty("file.separator"); String filename = userDir + fileSeparator + "config" + fileSeparator + "Sync_GNCST_Latency_config"; // use the Property Configurator to configure log file. PropertyConfigurator.configure(filename); Jeff --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org