 | LoggingConfiguration.AddTarget Method (Target) |
Registers the specified target object. The name of the target is read from
Name.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntaxpublic void AddTarget(
Target target
)
Public Sub AddTarget (
target As Target
)
Dim instance As LoggingConfiguration
Dim target As Target
instance.AddTarget(target)
member AddTarget :
target : Target -> unit
Parameters
- target
- Type: NLog.Targets.Target
The target object with a non nullName
ExceptionsException | Condition |
---|
ArgumentNullException | when target is null |
See Also