Table of Contents

Class LogFilter

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

Abstract implementation of the ILogFilter interface.

public abstract class LogFilter : ILogFilter
Inheritance
LogFilter
Implements
Derived
Inherited Members

Constructors

LogFilter(string)

Initializes a new instance of LogFilter.

protected LogFilter(string name)

Parameters

name string

The name for the log filter.

Properties

Name

Gets the name of the log filter

public string Name { get; }

Property Value

string

Methods

Filter(LogEntry)

Test to see if a message meets the criteria to be processed.

public abstract bool Filter(LogEntry log)

Parameters

log LogEntry

Log entry to test.

Returns

bool

true if the message passes through the filter and should be logged, false otherwise.