PostSharp 5.0 / / Post­Sharp Documentation / 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: 5.0.55.0 (5.0.55.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