PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace/Logging­Context Class/Logging­Context Methods/Logging­Context.​Get­Custom­Record­Builder Method

LoggingContext.GetCustomRecordBuilder Method

Gets a LogRecordBuilder for the current context to build a custom record.

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

Parameters

recordInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CustomLogRecordInfo
Information about the record.

Return Value

Type: LogRecordBuilder
A LogRecordBuilder.
See Also