NET Logging Library
Logging to UDP
Basic Tasks > Logging to UDP

The UDP Target logs messages to a UDP listener on a port

It has these properties that can be configured:

 

//Example runtime configuration, can also use log.config, app.config, or web.config
Log.ResetConfiguration(); 
UdpTarget target = new UdpTarget();  
target.CurrentIpAddress = "127.0.0.1";
target.Port = 80;
Log.Config.Targets.Add(target);

Log.Debug("This is a test");