Click or drag to resize

LayoutRender Method (LogEventInfo)

Renders formatted output using the log event as context.

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
public string Render(
	LogEventInfo logEvent
)

Parameters

logEvent
Type: NLogLogEventInfo
The logging event.

Return Value

Type: String
The formatted output as string.
Remarks
Inside a Target, RenderLogEvent(Layout, LogEventInfo) is preferred for performance reasons.
See Also