Click or drag to resize

MethodCallTarget Constructor (String, ActionLogEventInfo, Object)

Initializes a new instance of the MethodCallTarget class.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
public MethodCallTarget(
	string name,
	Action<LogEventInfo, Object[]> logEventAction
)

Parameters

name
Type: SystemString
Name of the target.
logEventAction
Type: SystemActionLogEventInfo, Object
Method to call on logevent.
See Also