GetCustomRecordBuilder(LoggingContext, ref CustomLogRecordInfo)
Gets a LogRecordBuilder and initializes it to emit a custom record.
Declaration
public LogRecordBuilder GetCustomRecordBuilder(LoggingContext context, ref CustomLogRecordInfo recordInfo)
Parameters
Type | Name | Description |
---|---|---|
LoggingContext | context | The LoggingContext to which the record relates. |
CustomLogRecordInfo | recordInfo | Information about the custom record. |
Returns
Type | Description |
---|---|
LogRecordBuilder | A LogRecordBuilder properly initialized by calling the BeginCustomRecord(LoggingContext, ref CustomLogRecordInfo) method. |