| LayoutRendererGetCulture Method |
Get the CultureInfo for rendering the messages to a String
Namespace:
NLog.LayoutRenderers
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax protected CultureInfo GetCulture(
LogEventInfo logEvent,
CultureInfo layoutCulture = null
)
Protected Function GetCulture (
logEvent As LogEventInfo,
Optional layoutCulture As CultureInfo = Nothing
) As CultureInfo
Dim logEvent As LogEventInfo
Dim layoutCulture As CultureInfo
Dim returnValue As CultureInfo
returnValue = Me.GetCulture(logEvent,
layoutCulture)
member GetCulture :
logEvent : LogEventInfo *
?layoutCulture : CultureInfo
(* Defaults:
let _layoutCulture = defaultArg layoutCulture null
*)
-> CultureInfo
Parameters
- logEvent
- Type: NLogLogEventInfo
LogEvent with culture - layoutCulture (Optional)
- Type: System.GlobalizationCultureInfo
Culture in on Layout level
Return Value
Type:
CultureInfoRemarks See Also