XmlConfigurator ConfigureAndWatch Method (FileInfo)Apache log4net™ SDK Documentation
Configures log4net using the file specified, monitors the file for changes and reloads the configuration if a change is detected.

Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public static ICollection ConfigureAndWatch(
	FileInfo configFile
)

Parameters

configFile
Type: OnlineSystem.IO FileInfo
The XML file to load the configuration from.

Return Value

Type: OnlineICollection

[Missing <returns> documentation for "M:log4net.Config.XmlConfigurator.ConfigureAndWatch(System.IO.FileInfo)"]

Remarks

The configuration file must be valid XML. It must contain at least one element called log4net that holds the configuration data.

The configuration file will be monitored using a OnlineFileSystemWatcher and depends on the behavior of that class.

For more information on how to configure log4net using a separate configuration file, see [M:Configure(FileInfo)].

See Also

[M:Configure(FileInfo)]