This project has moved. For the latest updates, please go here.

Add column to view when working with nlog

Nov 1, 2015 at 9:11 AM
I am working with nlog and sentnel
I am sending the log over udp from several machines
i want ti identufy the sending machine

What is the best way to do that?
Nov 7, 2015 at 8:31 AM
I would write a wrapper (derived class) for nLog and add a machine id to it. Then with each write to nlog I would insert the machine id into the message.
Coordinator
Nov 7, 2015 at 3:26 PM
That information is already in the meta-data. Just need to tweak the code to show the column. I'll quickly do that - longer term I want columns to be something you can add yourself.
Coordinator
Nov 7, 2015 at 4:14 PM
Edited May 22, 2016 at 11:03 AM
Pushed some code onto the develop branch that does this. Need to test a little more, will publish new version tomorrow.
May 21, 2016 at 12:28 PM
any news with this feature? i am using 12.4.0 and i dont see a way to configure it
Can you assist?
Coordinator
May 22, 2016 at 11:02 AM
Good news, it is already included (I forget which version introduced it).

Take a look on the "Show Columns" section of the ribbon bar, you should see "Source Host" option. This will show/hide the column that is populated with the originating source machine name by nLog.

R