NLog and WCF - threadid

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NLog and WCF - threadid

Martin
I want to identify each thread or each request I get in WCF when logging so they dont get mixed.

I tried various layouts such as
${processid}
${threadid}
${threadname}

But none of theese seem to be able to unique identify the WCF session request that I have.

Did I miss something?
Reply | Threaded
Open this post in threaded view
|

Re: NLog and WCF - threadid

Martin
I found a few pin pointers how this could be done using NLog - see here:

http://blueecsharp.blogspot.com/2012/01/how-to-assign-unique-id-to-wcf-with.html














online recruitment