Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

XmlConfiguratorAttribute.ConfigFileExtension Property

Gets or sets the extension of the configuration file.

[Visual�Basic]
Public�Property�ConfigFileExtension�As�String
[C#]
public�string�ConfigFileExtension�{get;�set;}

Property Value

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

XmlConfiguratorAttribute Class | log4net.Config Namespace