PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsThread­Logging­ContextIs­Logging
Open sandboxFocus

ThreadLoggingContext.IsLogging Property

IsLogging

Determines whether the current thread is emitting a log record. This allows to avoid infinite recursion while logging.

Declaration
public bool IsLogging { get; }
Property Value
Type Description
Boolean