LoggingBackend.OpenEphemeralContext Method (LoggingTypeSource, ThreadLoggingContext) |
Gets an EphemeralLoggingContext for use in a given LoggingTypeSource. An EphemeralLoggingContext is a degenerated
kind of context, used to emit a single record.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public EphemeralLoggingContext OpenEphemeralContext( LoggingTypeSource source, ref ThreadLoggingContext threadContext )
Parameters
- source
- Type: PostSharp.Patterns.Diagnostics.LoggingTypeSource
The LoggingTypeSource. - threadContext
- Type: PostSharp.Patterns.Diagnostics.Contexts.ThreadLoggingContext
The current ThreadLoggingContext.
Return Value
Type: EphemeralLoggingContextAn EphemeralLoggingContext.