Currently i am working on a project which implements WCFservice and SilverLight with Web application. I am focusing to Log information using Enterprise Library 4.1 Logging application Block.
Also, I want to log all the information (including WCFservice, Web application) into a centralized located single log file. For this to achieve Iused the concept of Distributed services as mentioned
in the below link-
This link says to distribute log entries to a central destination, configure the application to write log entries to the Message
Queuing trace listener. When the application sends a log entry to the Logging Application Block, it places the log entry on a Message Queuing queue. The distributor service runs as a Windows service on either the same computer as the application or on a remote
computer. If there are log entries on the queue, the distributor service uses an instance of the Logging Application Block to forward the messages to the trace listener(s). The trace listener(s) write the log entries to the destinations, such as an event log
or a flat file.
I followed all the steps mentioned in the link and succeeded in configuring the application to send message to Message Queuing through MSMQ trace listener,
but distributor service is failing to forward the message to the trace listener. We configured the Logging application block in MsmqDistributor.config.exe (provided by Enterprise Library) where I add the Flat file to log entries.
I work around for this issue and created another project which reads message from Message Queuing and write to the log file, but my main aim is to use Logging application block under MsmqDistributor.config.exe
and achieve the same task.
Any help will be appreciated.