PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Backend Class / Logging­Backend Methods / Logging­Backend.​Open­Ephemeral­Context Method / Logging­Backend.​Open­Ephemeral­Context Method (Log­Member­Info)

LoggingBackend.OpenEphemeralContext Method (LogMemberInfo)

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.8.6.0 (6.8.6.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