LoggingContext Properties |
The LoggingContext type exposes the following members.
Name | Description | |
---|---|---|
ActivationContext |
Gets the LoggingContext in which the current context was activated. If the current
context has been resumed, ActivationContext refers to the context in which the context was resumed.
| |
Backend |
Gets the parent LoggingBackend of the current context.
| |
Description |
Gets the description of the current context. The description is typically set by the LogRecordBuilder when building the opening record of a context.
| |
Id |
Gets or set the identifier of the current context. The value can be 0 when no identifier has been generated.
| |
IndentLevel |
Gets or sets the indentation level for the current context.
| |
IsAsync |
Determines whether the current LoggingContext represents an async method or an asynchronous custom activity.
| |
IsDisposed |
Determines whether the current context has been disposed.
| |
IsSharable |
Determines whether the current LoggingContext can be accessed outside of its
nominal lifetype (for instance after the method has completed or a custom activity has beeen 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.
| |
Kind |
Gets the kind of the current context.
| |
MemberName |
Gets the name of the method or property related to the current context.
| |
ParentContext |
Gets the LoggingContext that created (initiated) the current context. This is the logical parent.
| |
Source |
Gets the LoggingTypeSource corresponding, typically, to the declaring type of the member
associated to the current context.
| |
ThreadContext |
Gets the ThreadLoggingContext for the thread in which the current LoggingContext
is currently executed.
|