PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / IContext­Local­Logger Interface / IContext­Local­Logger Methods / IContext­Local­Logger.​Get­Record­Builder Method

IContextLocalLogger.GetRecordBuilder Method

Gets a record builder.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
ICustomLogRecordBuilder GetRecordBuilder(
	 in CustomLogRecordOptions options,
	ref CallerInfo callerInfo,
	ILoggingContext context = null
)

Parameters

options
Type: PostSharp.Patterns.Diagnostics.Custom.CustomLogRecordOptionsInAttribute
Options.
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
Information about the caller code.
context (Optional)
Type: PostSharp.Patterns.Diagnostics.Contexts.ILoggingContext
The context for which the record will be built, or null for standalone records.

Return Value

Type: ICustomLogRecordBuilder
A record builder.
See Also