LogFilter.Filter Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

Namespace:  Microsoft.Practices.EnterpriseLibrary.Logging.Filters
Assembly:  Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll)

Syntax

'Declaration
PublicMustOverrideFunctionFilter ( _
    logAs LogEntry _
) As Boolean
publicabstract bool Filter(
    LogEntry log
)
public:
virtual bool Filter(
    LogEntry^ log
) abstract
publicabstractfunctionFilter(
    log : LogEntry
) : boolean

Parameters

Return Value

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

Implements

ILogFilter.Filter(LogEntry)

See Also

LogFilter Class

Microsoft.Practices.EnterpriseLibrary.Logging.Filters Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.