Open sandboxFocus

Method WriteCustomParameter

WriteCustomParameter<T>(int, ArraySegment<char>, T, IFormatter<T>)

Writes a custom parameter (passed as an ArraySegment<char>) and uses a given formatter.

Declaration
public override void WriteCustomParameter<T>(int index, ArraySegment<char> parameterName, T value, IFormatter<T> formatter)
Parameters
Type Name Description
int index

Index of the custom parameter in the formatting string.

ArraySegment<char> parameterName

Name of the custom parameter.

T value

Value of the custom parameter.

IFormatter<T> formatter

The formatter to be used to format value.

Type Parameters
Name Description
T

Type of the custom parameter.

Overrides

WriteCustomParameter<T>(int, in CharSpan, T, in CustomLogParameterOptions, IFormatter<T>)

Writes a custom parameter (passed as an CharSpan) and uses a given formatter.

Declaration
public override void WriteCustomParameter<T>(int index, in CharSpan parameterName, T value, in CustomLogParameterOptions options, IFormatter<T> formatter)
Parameters
Type Name Description
int index

Index of the custom parameter in the formatting string.

CharSpan parameterName

Name of the custom parameter.

T value

Value of the custom parameter.

CustomLogParameterOptions options

Options.

IFormatter<T> formatter

The formatter to be used to format value.

Type Parameters
Name Description
T

Type of the custom parameter.

Overrides