PostSharp 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
public bool IsLogging { get; }

Property Value

Type: Boolean
See Also