PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Thread­Logging­Context Class / Thread­Logging­Context Properties / Thread­Logging­Context.​Is­Logging Property

ThreadLoggingContext.IsLogging Property

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

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public bool IsLogging { get; }

Property Value

Type: Boolean
See Also