PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​Trace­SourceTrace­Source­Logging­Type­SourceIs­Backend­Enabled
Open sandboxFocus

TraceSourceLoggingTypeSource.IsBackendEnabled Method

IsBackendEnabled(LogLevel)

Checks whether logging is enabled in the back-end for the given level.

Declaration
protected override bool IsBackendEnabled(LogLevel level)
Parameters
Type Name Description
LogLevel level
Returns
Type Description
System.Boolean
Overrides
LoggingTypeSource.IsBackendEnabled(LogLevel)
Remarks

The result of this method is cached. To invalidate the cache, call the Refresh() method.