PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace/Logging­Context Class/Logging­Context Methods/Logging­Context.​Get­Record­Builder Method

LoggingContext.GetRecordBuilder Method

Gets a LogRecordBuilder for the current context to build a standard record for a given method.

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

Parameters

logRecordInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogRecordInfo
Information about the record.
logMemberInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogMemberInfo
Information about the member.

Return Value

Type: LogRecordBuilder
A LogRecordBuilder.
See Also