Open sandboxFocus

Method GetRecordBuilder

GetRecordBuilder(LoggingContext, ref LogRecordInfo, ref LogMemberInfo)

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

Declaration
public LogRecordBuilder GetRecordBuilder(LoggingContext context, ref LogRecordInfo logRecordInfo, ref LogMemberInfo logMemberInfo)
Parameters
Type Name Description
LoggingContext context

The LoggingContext to which the record relates.

LogRecordInfo logRecordInfo

Information about the log record.

LogMemberInfo logMemberInfo

Information about the method, property, or field.

Returns
Type Description
LogRecordBuilder

A LogRecordBuilder properly initialized by calling the BeginRecord(LoggingContext, ref LogRecordInfo, ref LogMemberInfo) method.