PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomILogger3Get­Context­Local­Logger
Open sandboxFocus

ILogger3.GetContextLocalLogger Method

GetContextLocalLogger(LogLevel)

Gets the IContextLocalLogger plus a flag indicating whether the source is enabled for a given LogLevel.

Declaration
(IContextLocalLogger, bool) GetContextLocalLogger(LogLevel level)
Parameters
Type Name Description
LogLevel level

Log level.

Returns
Type Description
(, )<IContextLocalLogger, Boolean>

The IContextLocalLogger for the current execution context and a flag indicating whether logging is enabled for the given level.