PostSharp6.0/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: 6.0.35.0 (6.0.35.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