Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 52019 invoked from network); 4 Aug 2006 21:39:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Aug 2006 21:39:19 -0000 Received: (qmail 99421 invoked by uid 500); 4 Aug 2006 21:39:18 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 99277 invoked by uid 500); 4 Aug 2006 21:39:17 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 99264 invoked by uid 99); 4 Aug 2006 21:39:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 14:39:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [63.120.62.232] (HELO infsrv00.InfinityInfo.com) (63.120.62.232) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 14:39:15 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: XmlConfiguratorAttribute and absolute path? Date: Fri, 4 Aug 2006 17:39:04 -0400 Message-ID: <89ACF43E70DC0C4B812FEA71B98CE2EE1B7F56@infsrv00.InfinityInfo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: XmlConfiguratorAttribute and absolute path? Thread-Index: Aca4DmgMMV/4R6pASvu5Uw5Q2NzlDQ== From: "Jiho Han" To: "Log4NET User" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have an assembly which is a plugin that gets loaded by a host application. Its application base directory as returned by AppDomain.CurrentDomain.BaseDirectory is nowhere near where I must put my assembly. Here's what I am trying to do. Have my .log4net located in the same folder as my assembly. It doesn't seem to be that there is a way to specify an absolute path in XmlConfiguratorAttribute (ConfigFile is supposed to be relative to appbase). Right now I am basically having to call XmlConfigurator.ConfigureAndWatch in my static constructor. Is there a better way? And no, I cannot put log4net configuration in the host's .config file. Thanks Jiho Han Senior Software Engineer Infinity Info Systems The Sales Technology Experts Tel: 212.563.4400 x216 Fax: 212.760.0540 jhan@infinityinfo.com www.infinityinfo.com =20