Custom MSMQ Trace Listener

Topics: Enterprise Library Core, Logging Application Block
Sep 12, 2011 at 6:35 PM

Hi,

I am trying to create custom trace listener in msmq.

My requirement is I have to log all the message in queue and from queue msmq distributor application will get the messages and put it to db.

I have created custom db trace listener and it is working fine.

So I have to create a custom trace listener for msmq and then once it is put the message in queue distributor application will check the queue and save it to db.

Does anybody have created custom trace listener for msmq listener?

 

Sep 13, 2011 at 2:12 AM

Hi,

You can refer to the Entlib Source Code specifically on MsmqTraceListener.cs so you can have an idea how it will be done.

 

Noel Angelo Bolasoc
Avanade Software
Avanade, Inc.
Contact Us