PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Backend Class / Logging­Backend Methods / Logging­Backend.​Open­Sync­Context Method

LoggingBackend.OpenSyncContext Method

Gets a SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.

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 SyncMethodLoggingContext OpenSyncContext(
	ref LogMemberInfo logMemberInfo
)

Parameters

logMemberInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogMemberInfo
A reference to a LogMemberInfo describing the method being logged.

Return Value

Type: SyncMethodLoggingContext
A SyncMethodLoggingContext for logMemberInfo.
See Also