PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace/Thread­Logging­Context Class/Thread­Logging­Context Methods/Thread­Logging­Context.​Get­Custom­Record­Builder Method/Thread­Logging­Context.​Get­Custom­Record­Builder Method (Logging­Context, Custom­Log­Record­Info)

ThreadLoggingContext.GetCustomRecordBuilder Method (LoggingContext, CustomLogRecordInfo)

Gets a LogRecordBuilder and initializes it to emit a custom record.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.10.0 (6.5.10.0)
Syntax
C#
public LogRecordBuilder GetCustomRecordBuilder(
	LoggingContext context,
	ref CustomLogRecordInfo recordInfo
)

Parameters

context
Type: PostSharp.Patterns.Diagnostics.Contexts.LoggingContext
The LoggingContext to which the record relates.
recordInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CustomLogRecordInfo
Information about the custom record.

Return Value

Type: LogRecordBuilder
A LogRecordBuilder properly initialized by calling the BeginCustomRecord(LoggingContext, CustomLogRecordInfo) method.
See Also