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.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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