Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 20313 invoked from network); 10 Sep 2007 20:56:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 20:56:33 -0000 Received: (qmail 44276 invoked by uid 500); 10 Sep 2007 20:56:26 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 44249 invoked by uid 500); 10 Sep 2007 20:56:25 -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 44238 invoked by uid 99); 10 Sep 2007 20:56:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 13:56:25 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [38.112.210.155] (HELO glgexchange01.glgroup.com) (38.112.210.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 20:56:23 +0000 Content-Transfer-Encoding: 7bit Importance: normal Priority: normal Received: from glgexchange04.glgroup.com ([192.168.1.19]) by glgexchange01.glgroup.com with Microsoft SMTPSVC(6.0.3790.0); Mon, 10 Sep 2007 16:56:02 -0400 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7F3EC.EF42174D" Subject: Trouble using XmlConfigurator assembly attribute Date: Mon, 10 Sep 2007 16:56:01 -0400 Message-ID: <973858C2ADFF5C4F99415784F9391C0603D5FA2A@glgexchange04.glgroup.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Trouble using XmlConfigurator assembly attribute thread-index: Acfz7P7h2OiiGtJ+Ty2/LwA0UbzjkQ== From: "Mark Modrall" To: X-OriginalArrivalTime: 10 Sep 2007 20:56:02.0110 (UTC) FILETIME=[FF1A65E0:01C7F3EC] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C7F3EC.EF42174D Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi... =20 I've got some programs/assemblies that I'm building and for some reason, the XmlConfigurator assembly attribute isn't working. A couple of the assemblies have =20 [assembly: log4net.Config.XmlConfigurator(ConfigFile =3D "App.log4net", Watch =3D true)] =20 In their AssemblyInfo.cs files, but when I run the program =20 Log4Net.LogManager.GetLogger("foo"); =20 Doesn't return the logger defined in the file. =20 If I put log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo("App.log4net")); =20 into the app Main(), though, it does find the config, load it, and return the right logger instance. =20 Is there some trick to using the assembly attribute? =20 Thanks Mark =20 This e-mail message, and any attachments, is intended only for the use = of the individual or entity identified in the alias address of this = message and may contain information that is confidential, privileged and = subject to legal restrictions and penalties regarding its unauthorized = disclosure and use. Any unauthorized review, copying, disclosure, use or = distribution is strictly prohibited. If you have received this e-mail = message in error, please notify the sender immediately by reply e-mail = and delete this message, and any attachments, from your system. Thank = you. ------_=_NextPart_001_01C7F3EC.EF42174D Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi…

 

         =    I’ve got some programs/assemblies that I’m building and for some reason, the XmlConfigurator assembly attribute = isn’t working.  A couple of the assemblies = have

 

[assembly: = log4net.Config.XmlConfigurator(ConfigFile =3D "App.log4net", Watch =3D true)]

 

In their AssemblyInfo.cs files, but when I run the = program

 

Log4Net.LogManager.GetLogger(“foo”);<= /o:p>

 

Doesn’t return the logger defined in the = file.

 

         =    If I put

log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo("App.log4net"));

 

into the app Main(), though, it does find the config, load it, and return the right logger = instance.

 

         =    Is there some trick to using the assembly attribute?

 

Thanks
Mark

 

 
This e-mail message, and any = attachments, is intended only for the use of the individual or entity = identified in the alias address of this message and may contain = information that is confidential, privileged and subject to legal = restrictions and penalties regarding its unauthorized disclosure and = use. Any unauthorized review, copying, disclosure, use or distribution = is strictly prohibited. If you have received this e-mail message in = error, please notify the sender immediately by reply e-mail and delete = this message, and any attachments, from your system. Thank you. =

------_=_NextPart_001_01C7F3EC.EF42174D--