| FuncLayoutRenderer Constructor (String, FuncLogEventInfo, LoggingConfiguration, Object) |
Namespace:
NLog.LayoutRenderers
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public FuncLayoutRenderer(
string layoutRendererName,
Func<LogEventInfo, LoggingConfiguration, Object> renderMethod
)
Public Sub New (
layoutRendererName As String,
renderMethod As Func(Of LogEventInfo, LoggingConfiguration, Object)
)
Dim layoutRendererName As String
Dim renderMethod As Func(Of LogEventInfo, LoggingConfiguration, Object)
Dim instance As New FuncLayoutRenderer(layoutRendererName,
renderMethod)
new :
layoutRendererName : string *
renderMethod : Func<LogEventInfo, LoggingConfiguration, Object> -> FuncLayoutRenderer
Parameters
- layoutRendererName
- Type: SystemString
Name without ${}. - renderMethod
- Type: SystemFuncLogEventInfo, LoggingConfiguration, Object
Method that renders the layout.
See Also