PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Log­Record­Builder Class/Log­Record­Builder Methods/Log­Record­Builder.​Write­Custom­Parameter Method/Log­Record­Builder.​Write­Custom­Parameter(T) Method (Int32, Char­Span, T, Custom­Log­Parameter­Options, IFormatter(T))

LogRecordBuilder.WriteCustomParameter<T> Method (Int32, CharSpan, T, CustomLogParameterOptions, IFormatter<T>)

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public virtual void WriteCustomParameter<T>(
	int index,
	 in CharSpan parameterName,
	T value,
	 in CustomLogParameterOptions options,
	IFormatter<T> formatter
)

Parameters

index
Type: System.Int32
parameterName
Type: PostSharp.Patterns.Formatters.CharSpanInAttribute
value
Type: T
options
Type: PostSharp.Patterns.Diagnostics.Custom.CustomLogParameterOptionsInAttribute
formatter
Type: PostSharp.Patterns.Formatters.IFormatter<T>

Type Parameters

T
See Also