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: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
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