0
votes

I am using MSMQ trace listener to log messages using Enterprise Library 5.0. Successfully able to log messages to queue.

What I am unable to figure is how to read the queued messages and log it to Database. Searched at many places. But did not find any relevant sources.

Can anyone help ?

Thanks in Advance.

1

1 Answers

1
votes

You can use the Distributor Service to listen to a queue for messages and then log those messages to the database based on the service configuration file. See Using the Distributor Service for details on how to use the service.

One caveat is to make sure all messages are formatted with the BinaryLogFormatter.