Click or drag to resize

TargetRegister Method (String, Type)

Note: This API is now obsolete.

Register a custom Target.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.2.0+eed5f76d158dbcaef9326f7a0e1c281adad171e8
Syntax
[ObsoleteAttribute("Instead use LogManager.Setup().SetupExtensions(). Marked obsolete with NLog v5.2")]
public static void Register(
	string name,
	Type targetType
)

Parameters

name
Type: SystemString
The target type-alias for use in NLog configuration
targetType
Type: SystemType
Type of the Target.
Remarks
Short-cut for registering to default ConfigurationItemFactory
See Also