 | TargetRenderLogEvent Method (Layout, LogEventInfo) |
Renders the logevent into a string-result using the provided layout
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxprotected string RenderLogEvent(
Layout? layout,
LogEventInfo logEvent
)
Protected Function RenderLogEvent (
layout As Layout,
logEvent As LogEventInfo
) As String
Dim layout As Layout
Dim logEvent As LogEventInfo
Dim returnValue As String
returnValue = Me.RenderLogEvent(layout,
logEvent)
member RenderLogEvent :
layout : Layout *
logEvent : LogEventInfo -> string
Parameters
- layout
- Type: NLog.LayoutsLayout
The layout. - logEvent
- Type: NLogLogEventInfo
The logevent info.
Return Value
Type:
StringString representing log event.
See Also