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
- log
Type: Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry
The log entry to check.
Return Value
true if the entry should be logged.