Topics: Building and extending application blocks, Enterprise Library Core, Logging Application Block
Jul 22, 2008 at 11:32 AM

I've a Windows Service running around 20 WCF endpoints, each endpoint containing around 10 operations.
What I'd like to achieve is that each call to an operation would generate one log file.
For what I know this not the regular use LAB.
I'm also interrested in logging to a database through MSMQ.
But if I use LAB as is each call to the logging API will generate a message (msmq).
This will result in a large amount of inserts in the DB and each record would not be related with each other.
Opraration A : Record 1 : Client 1
Opraration A : Record 2 : Client 1
Opraration B : Record 3 : Client 2
Opraration A : Record 4 : Client 1
Opraration A : Record 5 : Client 2
How can I make a difference between each record in order to easly view all the record of the Client 1 calling Operation A ?

Thanks for any help