Open sandboxFocus

Method WriteCustomParameter

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

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

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

The index of the custom parameter in the formatting string.

ArraySegment<char> parameterName

The name of the custom parameter.

T value

The value of the custom parameter.

Type Parameters
Name Description
T

The type of the custom parameter.

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

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

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

The index of the custom parameter in the formatting string.

ArraySegment<char> parameterName

The name of the custom parameter.

T value

The value of the custom parameter.

IFormatter<T> formatter

The formatter to be used to format value.

Type Parameters
Name Description
T

The type of the custom parameter.

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

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

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

The index of the custom parameter in the formatting string.

CharSpan parameterName

The name of the custom parameter.

T value

The value of the custom parameter.

CustomLogParameterOptions options

The options.

IFormatter<T> formatter

The formatter to be used to format value.

Type Parameters
Name Description
T

The type of the custom parameter.

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

Writes a custom parameter (passed as a CharSpan) and uses the default formatter.

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

The index of the custom parameter in the formatting string.

CharSpan parameterName

The name of the custom parameter.

T value

The value of the custom parameter.

CustomLogParameterOptions options

The options.

Type Parameters
Name Description
T

The type of the custom parameter.