Exception information over UDP

3 messages Options
Embed this post
Permalink
wumb

Exception information over UDP

Reply Threaded More More options
Print post
Permalink
Hi All,

Is there a simple way to transmit exception information over udp using a chainsaw or nlogviewer target? The support for saving the additional information (such as stack traces, exception type and message) seems to work great for logging to files, but I can't seem to get it to output over the network.

If this is not something currently available, could someone please describe briefly where this functionality should be plugged into the source and I will try and implement it. Going through the huge code base to understand it for this extra functionality is not something I have the time to do at the moment unfortunately.

Any thoughts appreciated.

Regards,

WuMb
Jaroslaw Kowalski

Re: Exception information over UDP

Reply Threaded More More options
Print post
Permalink
I'm afraid it's not implemented. I'm not even sure what's the wire format for that.
It should go in "src\NLog\LayoutRenderers\Log4JXmlEvent.cs".

You can read exception information from "logEvent.Exception".
wumb

Re: Exception information over UDP

Reply Threaded More More options
Print post
Permalink
Thanks for that Jaroslaw,

I will have a look at the source and see if I can get it working. I'll send you and edits I make if I get it working.

Regards,

WuMb