XmlConfiguratorAttribute Watch 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: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public bool Watch { get; set; }

    Public Property Watch As Boolean
    	Get
    	Set

    public:
    property bool Watch {
    	bool get ();
    	void set (bool value);
    }

    member Watch : bool with get, set

#### Property Value

Type: Boolean
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

#### Reference

XmlConfiguratorAttribute Class
log4net.Config Namespace