PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Backend Class/Logging­Backend Methods/Logging­Backend.​Open­Ephemeral­Context Method

LoggingBackend.OpenEphemeralContext Method

Gets an EphemeralLoggingContext for use in a given method. 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: 6.0.35.0 (6.0.35.0)
Syntax
C#
public EphemeralLoggingContext OpenEphemeralContext(
	ref LogMemberInfo logMemberInfo
)

Parameters

logMemberInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogMemberInfo
A reference to a LogMemberInfo describing the method in which the record will be emitted.

Return Value

Type: EphemeralLoggingContext
An EphemeralLoggingContext.
See Also