 | LoggingConfigurationAddTarget 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.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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.TargetsTarget
The target object with a non Name
ExceptionsException | Condition |
---|
ArgumentNullException | when target is |
See Also