Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

XmlConfiguratorAttribute.Watch Property

Gets or sets a value indicating whether to watch the configuration file.

[Visual�Basic]
Public�Property�Watch�As�Boolean
[C#]
public�bool�Watch�{get;�set;}

Property Value

true if the configuration should be watched, false otherwise.

Remarks

If this flag is specified and set to true then the framework will watch the configuration file and will reload the config each time the file is modified.

The config file can only be watched if it is loaded from local disk. In a No-Touch (Smart Client) deployment where the application is downloaded from a web server the config file may not reside on the local disk and therefore it may not be able to watch it.

Note��� Watching configuration is not supported on the SSCLI.

See Also

XmlConfiguratorAttribute Class | log4net.Config Namespace