 | LayoutRendererGetFormatProvider Method |
Get the IFormatProvider for rendering the messages to a String
Namespace:
NLog.LayoutRenderers
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxprotected IFormatProvider? GetFormatProvider(
LogEventInfo logEvent,
IFormatProvider? layoutCulture = null
)
Protected Function GetFormatProvider (
logEvent As LogEventInfo,
Optional layoutCulture As IFormatProvider = Nothing
) As IFormatProvider
Dim logEvent As LogEventInfo
Dim layoutCulture As IFormatProvider
Dim returnValue As IFormatProvider
returnValue = Me.GetFormatProvider(logEvent,
layoutCulture)
member GetFormatProvider :
logEvent : LogEventInfo *
?layoutCulture : IFormatProvider
(* Defaults:
let _layoutCulture = defaultArg layoutCulture null
*)
-> IFormatProvider
Parameters
- logEvent
- Type: NLogLogEventInfo
LogEvent with culture - layoutCulture (Optional)
- Type: SystemIFormatProvider
Culture in on Layout level
Return Value
Type:
IFormatProvider
See Also