The LoggingContext type exposes the following members.
Gets the parent LoggingBackend of the current context.
Gets the LoggingTransaction defined or inherited by the current context.
Gets the LoggingTransaction defined by the current context.
Gets the description of the current context. The description is typically set by the LogRecordBuilder when building the opening record of a context.
Gets or set the identifier of the current context. This value is created according to the strategy set in LoggingBackend.Options.ContextIdGenerationStrategy.
Gets or sets the indentation level for the current context.
Determines whether the current LoggingContext represents an async method or an asynchronous custom activity.
Determines whether the current context has been disposed.
Determines whether the current LoggingContext is hidden. Hidden contexts may define properties but should not be rendered.
Determines whether the current LoggingContext can be accessed outside of its nominal lifetime (for instance after the method has completed or a custom activity has been closed). Since contexts can be pooled and reused, consumers must call the MakeSharable() method if they want to keep a reference to the LoggingContext and access it after its nominal lifetime has completed.
Gets the kind of the current context.
Gets the name of the method or property related to the current context.
|ParentContext|| Obsolete. |
Gets the LoggingContext in which the current context was activated. Previously, this was the logical parent instead.
|Properties|| Obsolete. |
Gets the logging properties added with the associated activity.
Gets the LoggingTypeSource corresponding, typically, to the declaring type of the member associated to the current context.
When this property returns a non-null value, the SyntheticId property shall use the value of the SyntheticParentId property as the parent identifier, instead of recursively building the synthetic identifier based on ParentContext. You can set this property when you open a custom activity by configuring the OpenActivityOptions object.