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: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
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