Click or drag to resize

FuncLayoutRenderer Constructor (String, FuncLogEventInfo, LoggingConfiguration, Object)

Initializes a new instance of the FuncLayoutRenderer class.

Namespace:  NLog.LayoutRenderers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public FuncLayoutRenderer(
	string layoutRendererName,
	Func<LogEventInfo, LoggingConfiguration, Object> renderMethod
)

Parameters

layoutRendererName
Type: SystemString
Name without ${}.
renderMethod
Type: SystemFuncLogEventInfo, LoggingConfiguration, Object
Method that renders the layout.
See Also