Table of Contents

Class LogEnabledFilterData

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging.Configuration
Assembly
Microsoft.Practices.EnterpriseLibrary.Logging.dll

Represents the configuration settings that describe a LogEnabledFilter.

public class LogEnabledFilterData : LogFilterData
Inheritance
LogEnabledFilterData

Constructors

LogEnabledFilterData()

Initialize a new instance of the LogEnabledFilterData class.

public LogEnabledFilterData()

LogEnabledFilterData(bool)

Initialize a new instance of the LogEnabledFilterData class.

public LogEnabledFilterData(bool enabled)

Parameters

enabled bool

True if logging should be enabled.

LogEnabledFilterData(string, bool)

Initialize a new named instance of the LogEnabledFilterData class.

public LogEnabledFilterData(string name, bool enabled)

Parameters

name string

The name.

enabled bool

True if logging should be enabled.

Properties

Enabled

Gets or sets the enabled value.

public bool Enabled { get; set; }

Property Value

bool

Methods

BuildFilter()

Builds the ILogFilter object represented by this configuration object.

public override ILogFilter BuildFilter()

Returns

ILogFilter

A LogEnabledFilter.