PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Log­Record­Builder Class/Log­Record­Builder Methods/Log­Record­Builder.​Begin­Record Method

LogRecordBuilder.BeginRecord Method

Initializes the current LogRecordBuilder to emit a standard (i.e. non-custom) record for a given context and method.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public virtual void BeginRecord(
	LoggingContext context,
	ref LogRecordInfo recordInfo,
	ref LogMemberInfo memberInfo
)

Parameters

context
Type: PostSharp.Patterns.Diagnostics.Contexts.LoggingContext
The parent LoggingContext of the record.
recordInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogRecordInfo
Information about the record.
memberInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogMemberInfo
Information about the method, property, or field.
See Also