Search Results for

    Show / Hide Table of Contents

    Class LogManagerConfigurationSection

    Configures the LogManager class

    Inheritance
    System.Object
    ConfigurationSectionWithAppSettingsBase
    LogManagerConfigurationSection
    Inherited Members
    ConfigurationSectionWithAppSettingsBase.IsReadOnly()
    ConfigurationSectionWithAppSettingsBase.GetAppSettingAsUri(String)
    ConfigurationSectionWithAppSettingsBase.GetXPathForAppSettingValue(String)
    ConfigurationSectionWithAppSettingsBase.ReadFromConfiguration<T>()
    ConfigurationSectionWithAppSettingsBase.GetAppSettingAsBool(String)
    ConfigurationSectionWithAppSettingsBase.GetAppSettingAsInt(String, Int32)
    ConfigurationSectionWithAppSettingsBase.ReplaceApplicationSettingValue(String, String)
    ConfigurationSectionWithAppSettingsBase.ApplicationSettings
    ConfigurationSectionWithAppSettingsBase.AppSettings
    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

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    ClientConfigurationWithAppSettingsExtensions.GetAppSettingAsBool(ConfigurationSectionWithAppSettingsBase, String)
    In This Article
    Back to top (c) Meriworks 2002-2022