LoggingAbstractSource.IsEnabled Method |
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.11.0 (6.9.11.0)
C#
public bool IsEnabled( LogLevel level )
Parameters
- level
- Type: PostSharp.Patterns.Diagnostics.LogLevel
A LogLevel.
Return Value
Type: Booleantrue if logging is enabled, otherwise false.
In case of exception in the logic of this method, this method will report the exception to the ExceptionHandler and return false.