Click or drag to resize

NetworkTargetAddress Property

Gets or sets the network destination address.

Namespace:  NLog.Targets
Assembly:  NLog.Targets.Network (in NLog.Targets.Network.dll) Version: 6.0.0+be83582280f7a841b0d3c6ae75b4f95aaf07e914
Syntax
public Layout Address { get; set; }

Property Value

Type: Layout
Remarks
The network destination address can be:
  • tcp://host:port - TCP (auto select IPv4/IPv6)
  • tcp4://host:port - force TCP/IPv4
  • tcp6://host:port - force TCP/IPv6
  • udp://host:port - UDP (auto select IPv4/IPv6)
  • udp4://host:port - force UDP/IPv4
  • udp6://host:port - force UDP/IPv6
  • http://host:port/pageName - HTTP using POST verb
  • https://host:port/pageName - HTTPS using POST verb
For SOAP-based webservice support over HTTP use WebService target.
See Also