Open sandboxFocus

Method GetContextLocalLogger

GetContextLocalLogger()

Gets the logger for the current context.

Declaration
IFlashtraceLocalLogger GetContextLocalLogger()
Returns
Type Description
IFlashtraceLocalLogger

GetContextLocalLogger(FlashtraceLevel)

Gets the IFlashtraceLocalLogger plus a flag indicating whether the source is enabled for a given FlashtraceLevel.

Declaration
(IFlashtraceLocalLogger Logger, bool IsEnabled) GetContextLocalLogger(FlashtraceLevel level)
Parameters
Type Name Description
FlashtraceLevel level

Log level.

Returns
Type Description
(IFlashtraceLocalLogger Logger, bool IsEnabled)

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