Class LogManagerConfigurationSection
Configures the LogManager class
Inherited Members
Namespace: ImageVault.Common.Lib.Logging
Assembly: ImageVault.Common.dll
Syntax
public class LogManagerConfigurationSection : ConfigurationSectionWithAppSettingsBase
Remarks
If not configured, will use the first implementation of the ILogManager as LogManager
Examples
The example below configures the LogManager
<configSections>
<section name="meriworks.logging" type ="ImageVault.Common.Lib.Logging.LogManagerConfigurationSection,ImageVault.Common"/>
</configSections>
<meriworks.logging logManager="MyLogManager.LogManager,MyLogManager">
<appSettings>
<add key="ThresholdLevel" value="Debug"/>
</appSettings>
</meriworks.logging>
Constructors
LogManagerConfigurationSection()
Initializes a new instance of the LogManagerConfigurationSection class.
Declaration
public LogManagerConfigurationSection()
Fields
SectionName
Defines the sectionName for the LogManagerConfigurationSection
Declaration
public const string SectionName = "meriworks.logging"
Field Value
Type | Description |
---|---|
System.String |
Properties
Instance
Returns the singleton instance of the LogManagerConfigurationSection class.
Declaration
public static LogManagerConfigurationSection Instance { get; }
Property Value
Type | Description |
---|---|
LogManagerConfigurationSection |
LogManagerType
Get/Sets the LogManagerType of the ClientConfigurationSection
Declaration
public Type LogManagerType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
ThresholdLevel
Returns the log level to filter by
Declaration
public Level ThresholdLevel { get; set; }
Property Value
Type | Description |
---|---|
Level |
Verbose
Gets the Verbose of the LogManagerConfigurationSection
Declaration
[Obsolete("Use ThresholdLevel instead")]
public bool Verbose { get; }
Property Value
Type | Description |
---|---|
System.Boolean |