logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suedeuno <suede...@yahoo.com>
Subject Re: error XmlConfigurator: Failed to parse config file.
Date Thu, 04 Dec 2008 00:35:17 GMT

It seems that using the XmlConfigurator attribute in assemblyinfo works with
default .config files but the fluent XmlConfigurator does not. Consequently,
using the fluent configuration with non-default config files works as long
as I have the path correct. Seems strange to me. 

One question, does XmlConfigurator have to be called in every project that
will use logging? I created a wrapper aroung log4net and would like to just
call XmlConfigurator within the wrapper class only but that doesn't seem to
work for me. It won't log unless I have XmlConfigurator called in every
project using log4net. Any help would be appreciated. Seems configuring
log4net is not as easy as the few tutorials online seem to claim. 



Freddy Gómez wrote:
> 
> If you add to the config file the section:
>  <appSettings>    <add key="log4net.Internal.Quiet" value="false" />
>   </appSettings>
> 
> you will get in the output window of Visual Studio debug information from
> log4net.
> 

-- 
View this message in context: http://www.nabble.com/error-XmlConfigurator%3A-Failed-to-parse-config-file.-tp20819038p20824938.html
Sent from the Log4net - Users mailing list archive at Nabble.com.


Mime
View raw message