logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Modrall" <MModr...@glgroup.com>
Subject Trouble using XmlConfigurator assembly attribute
Date Mon, 10 Sep 2007 20:56:01 GMT


            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 = "App.log4net",
Watch = true)]


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




Doesn't return the logger defined in the file.


            If I put



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?



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.

View raw message