Hi,

to avoid multiple configuration, you could use code like this:

if(log4net.LogManager.GetRepository().Configured == false)
{
        log4net.Config.XmlConfigurator.ConfigureAndWatch(new 
System.IO.FileInfo(...));
} 


Hth,
Franz


> -----Ursprüngliche Nachricht-----
> Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Sergey
> Gesendet: Donnerstag, 08. Februar 2007 11:10
> An: [email protected]
> Betreff: Re: Calling Configure serveral time
> 
> Hi,
> 
> Thanks for the answer. Are your plugin class created one time 
> only? If there are several instances of your class created 
> then XmlConfigurator.ConfigureAndWatch method is called 
> several times. Does it work? I wonder if log4net reloads its 
> configuration every time ConfigureAndWatch is called. Does 
> this re-load impact application performance?
> 
> Regards,
> Sergey
> 
> 
> 

Reply via email to