 | FuncLayoutRenderer Constructor (String, FuncLogEventInfo, LoggingConfiguration, Object) |
Namespace:
NLog.LayoutRenderers
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic 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> -> FuncLayoutRendererParameters
- layoutRendererName
- Type: SystemString
Name without ${}. - renderMethod
- Type: SystemFuncLogEventInfo, LoggingConfiguration, Object
Method that renders the layout.
See Also