LogWriter.ShouldLog Method

Queries whether a LogEntry shold be logged.

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

Syntax

'Declaration
Public MustOverride Function ShouldLog ( _
    log As LogEntry _
) As Boolean
public abstract bool ShouldLog(
    LogEntry log
)
public:
virtual bool ShouldLog(
    LogEntry^ log
) abstract
public abstract function ShouldLog(
    log : LogEntry
) : boolean

Parameters

Return Value

true if the entry should be logged.

See Also

LogWriter Class

Microsoft.Practices.EnterpriseLibrary.Logging Namespace