ILogger3.GetContextLocalLogger Method (LogLevel) |
Gets the IContextLocalLogger plus a flag indicating whether the source is enabled for a given LogLevel.
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
(IContextLocalLogger logger, bool isEnabled) GetContextLocalLogger( LogLevel level )
Parameters
- level
- Type: PostSharp.Patterns.Diagnostics.LogLevel
Log level.
Return Value
Type: ValueTuple<IContextLocalLogger, Boolean>The IContextLocalLogger for the current execution context and a flag indicating whether logging is enabled for the given level.