Configures log4net using the specified configuration file.
Namespace: log4net.ConfigAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
[ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
public static void Configure(
Stream configStream
)
[ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
public static void Configure(
Stream configStream
)
<ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")>
Public Shared Sub Configure (
configStream As Stream
)
<ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")>
Public Shared Sub Configure (
configStream As Stream
)
public:
[ObsoleteAttribute(L"Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
static void Configure(
Stream^ configStream
)
public:
[ObsoleteAttribute(L"Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
static void Configure(
Stream^ configStream
)
Parameters
- configStream
- Type: System.IO Stream
A stream to load the XML configuration from.
DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator.
The configuration data must be valid XML. It must contain
at least one element called log4net that holds
the log4net configuration data.
Note that this method will NOT close the stream parameter.