Click or drag to resize

IValueFormatterFormatValue Method

Serialization of an object, e.g. JSON and append to builder

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
bool FormatValue(
	Object value,
	string format,
	CaptureType captureType,
	IFormatProvider formatProvider,
	StringBuilder builder
)

Parameters

value
Type: SystemObject
The object to serialize to string.
format
Type: SystemString
Parameter Format
captureType
Type: NLog.MessageTemplatesCaptureType
Parameter CaptureType
formatProvider
Type: SystemIFormatProvider
An object that supplies culture-specific formatting information.
builder
Type: System.TextStringBuilder
Output destination.

Return Value

Type: Boolean
Serialize succeeded (true/false)
See Also