NLog.LayoutRenderers.FuncLayoutRenderer
A layout renderer which could have different behavior per instance by using a Func<T>.
Gets or sets the culture used for rendering.
Format string for conversion from object to string.
Name used in config without ${}. E.g. "test" could be used as "${test}".
Method that renders the layout.
Initializes a new instance of the FuncLayoutRenderer class.
public FuncLayoutRenderer(string layoutRendererName, Func<LogEventInfo, LoggingConfiguration, object> renderMethod)
Initializes a new instance of the FuncLayoutRenderer class.
Render the value for this log event