AppendSemanticParameter(SemanticParameterKind, string, string, string, int)
Appends a parameter of string type to the current StringBuilder. Back-ends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder.
Declaration
protected virtual void AppendSemanticParameter(SemanticParameterKind kind, string name, string value, string prefix = null, int index = -1)
Parameters
Type | Name | Description |
---|---|---|
SemanticParameterKind | kind | Kind of semantic parameter. |
string | name | Parameter name. The |
string | value | Parameter value. |
string | prefix | Prefix to be prepended to |
int | index | Index of the parameter value, if there are several values for the same parameter name, or |
AppendSemanticParameter<T>(SemanticParameterKind, string, T, IFormatter<T>, string, int)
Appends a parameter to the current StringBuilder, where the name is given as a string, and uses a specific formatter. Back-ends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder. This method overload is strongly typed.
Declaration
protected virtual void AppendSemanticParameter<T>(SemanticParameterKind kind, string name, T value, IFormatter<T> formatter, string prefix = null, int index = -1)
Parameters
Type | Name | Description |
---|---|---|
SemanticParameterKind | kind | Kind of semantic parameter. |
string | name | Parameter name. The |
T | value | Parameter value. |
IFormatter<T> | formatter | The formatter to be used to format |
string | prefix | Prefix to be prepended to |
int | index | Index of the parameter value, if there are several values for the same parameter name, or |
Type Parameters
Name | Description |
---|---|
T |
AppendSemanticParameter(SemanticParameterKind, string, object, IFormatter, string, int)
Appends a parameter to the current StringBuilder, where the name is given as a string, and uses a specific formatter. Back-ends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder. This method overload is weakly typed.
Declaration
protected virtual void AppendSemanticParameter(SemanticParameterKind kind, string name, object value, IFormatter formatter, string prefix = null, int index = -1)
Parameters
Type | Name | Description |
---|---|---|
SemanticParameterKind | kind | Kind of semantic parameter. |
string | name | Parameter name. The |
object | value | Parameter value. |
IFormatter | formatter | The formatter to be used to format |
string | prefix | Prefix to be prepended to |
int | index | Index of the parameter value, if there are several values for the same parameter name, or |
AppendSemanticParameter<T>(SemanticParameterKind, ArraySegment<char>, T, IFormatter<T>, string, int)
Appends a parameter to the current StringBuilder, where the name is given as a ArraySegment<T>, and uses a specific formatter. Back-ends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder.
Declaration
protected virtual void AppendSemanticParameter<T>(SemanticParameterKind kind, ArraySegment<char> name, T value, IFormatter<T> formatter, string prefix = null, int index = -1)
Parameters
Type | Name | Description |
---|---|---|
SemanticParameterKind | kind | Kind of semantic parameter. |
ArraySegment<char> | name | Parameter name. The |
T | value | Parameter value. |
IFormatter<T> | formatter | The formatter to be used to format |
string | prefix | Prefix to be prepended to |
int | index | Index of the parameter value, if there are several values for the same parameter name, or |
Type Parameters
Name | Description |
---|---|
T |