LogWriter.ShouldLog 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.

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
PublicFunctionShouldLog ( _
    logAs LogEntry _
) As Boolean
public bool ShouldLog(
    LogEntry log
)
public:
bool ShouldLog(
    LogEntry^ log
)
publicfunctionShouldLog(
    log : LogEntry
) : boolean

Parameters

Return Value

true if the entry should be logged.

See Also

LogWriter Class

Microsoft.Practices.EnterpriseLibrary.Logging 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.