XmlConfiguratorAttribute ConfigFileExtension Property | Apache log4net™ SDK Documentation

Gets or sets the extension of 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 string ConfigFileExtension { get; set; }

    Public Property ConfigFileExtension As String
    	Get
    	Set

    public:
    property String^ ConfigFileExtension {
    	String^ get ();
    	void set (String^ value);
    }

    member ConfigFileExtension : string with get, set

#### Property Value

Type: String
The extension of the configuration file.
Remarks

If specified this is the extension for the configuration file. The path to the config file is built by using the application base directory (BaseDirectory), the assembly file name and the config file extension.

If the ConfigFileExtension is set to MyExt then possible config file names would be: MyConsoleApp.exe.MyExt or MyClassLibrary.dll.MyExt.

The ConfigFile takes priority over the ConfigFileExtension.

See Also

#### Reference

XmlConfiguratorAttribute Class
log4net.Config Namespace