Configures log4net using the file specified, monitors the file for changes
and reloads the configuration if a change is detected.
Namespace: log4net.ConfigAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
[ObsoleteAttribute("Use XmlConfigurator.ConfigureAndWatch instead of DOMConfigurator.ConfigureAndWatch")]
public static void ConfigureAndWatch(
FileInfo configFile
)
[ObsoleteAttribute("Use XmlConfigurator.ConfigureAndWatch instead of DOMConfigurator.ConfigureAndWatch")]
public static void ConfigureAndWatch(
FileInfo configFile
)
<ObsoleteAttribute("Use XmlConfigurator.ConfigureAndWatch instead of DOMConfigurator.ConfigureAndWatch")>
Public Shared Sub ConfigureAndWatch (
configFile As FileInfo
)
<ObsoleteAttribute("Use XmlConfigurator.ConfigureAndWatch instead of DOMConfigurator.ConfigureAndWatch")>
Public Shared Sub ConfigureAndWatch (
configFile As FileInfo
)
public:
[ObsoleteAttribute(L"Use XmlConfigurator.ConfigureAndWatch instead of DOMConfigurator.ConfigureAndWatch")]
static void ConfigureAndWatch(
FileInfo^ configFile
)
public:
[ObsoleteAttribute(L"Use XmlConfigurator.ConfigureAndWatch instead of DOMConfigurator.ConfigureAndWatch")]
static void ConfigureAndWatch(
FileInfo^ configFile
)
DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator.
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 FileSystemWatcher
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)].
[M:Configure(FileInfo)]