NLog Logging Library

TargetFactory.CreateTarget Method 

[This is preliminary documentation and subject to change.]

Creates the target object based on its target name.

[Visual Basic]
Public Shared Function CreateTarget( _
   ByVal name As String _
) As Target
[C#]
public static Target CreateTarget(
   string name
);

Parameters

name
The name of the target (e.g.
File
or
Console
)

Return Value

A new instance of the Target object.

See Also

TargetFactory Class | NLog Namespace