Click or drag to resize

TargetRenderLogEvent Method (Layout, LogEventInfo)

Renders the logevent into a string-result using the provided layout

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
protected string RenderLogEvent(
	Layout layout,
	LogEventInfo logEvent
)

Parameters

layout
Type: NLog.LayoutsLayout
The layout.
logEvent
Type: NLogLogEventInfo
The logevent info.

Return Value

Type: String
String representing log event.
See Also