NLog Logging Library

TargetFactory Members

TargetFactory overview

Public Static (Shared) Properties

TargetTypes Collection of target types added to the factory.

Public Static (Shared) Methods

AddTarget Registers the specified target type to the factory under a specified name.
AddTargetsFromAssembly Scans the specified assembly for types marked with TargetAttribute and adds them to the factory. Optionally it prepends the specified text to the target names to avoid naming collisions.
Clear Removes all target information from the factory.
CreateTarget Creates the target object based on its target name.
Reset Removes all targets and reloads them from NLog assembly and default extension assemblies.

See Also

TargetFactory Class | NLog Namespace