.NET Framework Bookmark and Share   
 index > .NET StockTrader Sample Application > Message Logging at Service Level
 

Message Logging at Service Level

I have enabled Message logging by adding trace listener to System.ServiceModel.MessageLogging trace source. This, only logs the "isOnline" operation calls. I can see why because, only base services (Config & Node) are in the config file and my service host and endpoints are added dynamically. How can i configure message logging for my primary business services?

Thanks,
Vmar.
vmar
You would need to enable the message logging dynamically too. You can add Trace sources like in the config file using the System.Diagnostics.TraceSource class: http://msdn.microsoft.com/en-us/library/system.diagnostics.tracesource.aspx.

Thanks,
If this answers your question, please use the "Answer" button to say so | Ben Cline
Ben Cline1

You can use google to search for other answers

Custom Search

More Threads

• Createneweventsource missing
• ConfigWeb generated client and performance
• load balance across service instances with their own repositories
• Platform Requirements
• recordset.addnew in vb.net
• accessing MCS Service From Windows Client(Not implementing MCS)
• Base Addresses
• how make common vedio with existing clips and images
• Existing connection was forcibly closed by the remote host.
• object reference not set to object error while using visual studio