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.8.6.0 (6.8.6.0)

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: LogRecordBuilderA LogRecordBuilder properly initialized by calling the BeginRecord(LoggingContext, LogRecordInfo, LogMemberInfo) method.
