Use WCF Message Logging

The post based on How to enable WCF tracing article
Open WCF Service Configuration Editor under VS 2008 Tools menu   or directly from installation folder (typically C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\SvcConfigEditor.exe
 
To enable WCF message logging
  1. Click the Diagnostics node, and expand it.

  2. Enable Message Logging on the right Tab

  3. To edit Message Logging settings, click the Message Logging node. You can edit the settings in the property grid.
  4. In particular ensure that MaxSizeOfMessageToLog is big enough to log all your messages.
 
To view trace file: 

Start Service Trace Viewer Tool (typically located at "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\SvcTraceViewer.exe"). 

Open message trace file, that was configured in WCF Service Configuration Editor previously(usually located in the root of your application).

 Select Message View tab, scroll to the bottom and click one of latest messages.If required press F5 to refresh list.

 In the Detail Pane (the bottom right pane in the view) use  Message  tab to see actual messages. 

BTW, I've submitted MS Connect suggestion to Add items "Save Message As" and "Print Message" to Detail Pane

 

posted @ Friday, October 03, 2008 2:26 PM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 1 and 7 and type the answer here:
 

Live Comment Preview:

 
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910