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