Allen,

The Hierarchy object exposes ConfigurationChangedEvent which will be
raised after the configuration file is reloaded. In order to hook-up the
event you will have to do something like:

((log4net.Repository.Hierarchy)LogManager.GetLoggerRepository()).Configu
rationChangedEvent += new
HierarchyConfigurationChangedEventHandler(ConfigChangedHandler);

Nicko

> -----Original Message-----
> From: Lyons, Allen [mailto:[EMAIL PROTECTED] 
> Sent: 24 June 2004 15:40
> To: Log4NET User (E-mail)
> Subject: ConfigureAndWatch event?
> 
> When using DOMConfigurator.ConfigureAndWatch, is there way to 
> be notified (callback or delegate, etc) when the 
> configuration file has been reloaded? I was looking at the 
> source, and it didn't look like there was. I just wanted to make sure.
> 
> Thanks
> Allen Lyons 
> 
> 

Reply via email to