PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace/Thread­Logging­Context Class/Thread­Logging­Context Methods/Thread­Logging­Context.​Get­Record­Builder Method/Thread­Logging­Context.​Get­Record­Builder Method (Logging­Context, Log­Record­Info, Log­Member­Info)

ThreadLoggingContext.GetRecordBuilder Method (LoggingContext, LogRecordInfo, LogMemberInfo)

Gets a LogRecordBuilder and initializes it for a given context, member, and record.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.10.0 (6.5.10.0)
Syntax
C#
public LogRecordBuilder GetRecordBuilder(
	LoggingContext context,
	ref LogRecordInfo logRecordInfo,
	ref LogMemberInfo logMemberInfo
)

Parameters

context
Type: PostSharp.Patterns.Diagnostics.Contexts.LoggingContext
The LoggingContext to which the record relates.
logRecordInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogRecordInfo
Information about the log record.
logMemberInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogMemberInfo
Information about the method, property, or field.

Return Value

Type: LogRecordBuilder
A LogRecordBuilder properly initialized by calling the BeginRecord(LoggingContext, LogRecordInfo, LogMemberInfo) method.
See Also