| MethodCallTarget Constructor (String, ActionLogEventInfo, Object) |
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public MethodCallTarget(
string name,
Action<LogEventInfo, Object[]> logEventAction
)
Public Sub New (
name As String,
logEventAction As Action(Of LogEventInfo, Object())
)
Dim name As String
Dim logEventAction As Action(Of LogEventInfo, Object())
Dim instance As New MethodCallTarget(name, logEventAction)
new :
name : string *
logEventAction : Action<LogEventInfo, Object[]> -> MethodCallTarget
Parameters
- name
- Type: SystemString
Name of the target. - logEventAction
- Type: SystemActionLogEventInfo, Object
Method to call on logevent.
See Also