PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomIContext­Local­LoggerGet­Record­Builder
Open sandboxFocus

IContextLocalLogger.GetRecordBuilder Method

GetRecordBuilder(in CustomLogRecordOptions, ref CallerInfo, ILoggingContext)

Gets a record builder.

Declaration
ICustomLogRecordBuilder GetRecordBuilder(in CustomLogRecordOptions options, ref CallerInfo callerInfo, ILoggingContext context = null)
Parameters
Type Name Description
CustomLogRecordOptions options

Options.

CallerInfo callerInfo

Information about the caller code.

ILoggingContext context

The context for which the record will be built, or null for standalone records.

Returns
Type Description
ICustomLogRecordBuilder

A record builder.