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.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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