Hi all!

I try to add me UdpAppender to log4net configuration. I've tried to test one
by one the following appenders:


        
        
        



        
        
        
        
                
        



        
        
        
                
        



        
        
        
        



To check that my application really sends the Udp packages I used the
following C# code:

IPEndPoint remoteEndPoint = new IPEndPoint(IPAddress.Any, 0);
                        UdpClient udpClient;
                        byte[] buffer;
                        string loggingEvent;

                        try
                        {
                                udpClient = new UdpClient(portNumber);

                                while (true)
                                {
                                        buffer = udpClient.Receive(ref 
remoteEndPoint);
                                        loggingEvent = 
System.Text.Encoding.Unicode.GetString(buffer);
                                        Console.WriteLine(loggingEvent);
                                }
                        }
                        catch (Exception e)
                        {
                                Console.WriteLine(e.ToString());
                        }

And I couldn't succeed.


Please help. How to configure log4net for using UdpAppender.

Thank you for your consideration.
-- 
View this message in context: 
http://www.nabble.com/Udp-Appender-tp20794424p20794424.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.

Reply via email to