XmlConfiguratorAttributeWatch Property Apache log4net™ SDK Documentation
Gets or sets a value indicating whether to watch the configuration file.

Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 4.0

public bool Watch { get; set; }

Property Value

Type: Boolean
true if the configuration should be watched, false otherwise.

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 Note
Watching configuration is not supported on the SSCLI.
See Also