Click or drag to resize

LayoutRendererGetFormatProvider Method

Get the IFormatProvider for rendering the messages to a String

Namespace:  NLog.LayoutRenderers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
protected IFormatProvider GetFormatProvider(
	LogEventInfo logEvent,
	IFormatProvider layoutCulture = null
)

Parameters

logEvent
Type: NLogLogEventInfo
LogEvent with culture
layoutCulture (Optional)
Type: SystemIFormatProvider
Culture in on Layout level

Return Value

Type: IFormatProvider
See Also