title: Server-side tracing of SOAP messages for WCF service
body: <p>I'm trying to follow <a href="http://blogs.msdn.com/madhuponduru/archive/2006/05/18/601458.aspx" rel="nofollow noreferrer">this tutorial</a> on configuring server-side SOAP tracing for my WCF service, as well as the <a href="http://msdn.microsoft.com/en-us/library/ms732023.aspx" rel="nofollow noreferrer">MSDN documentation</a>.</p>
  
  <p>When I run a test, I see Activity 00000000 in Microsoft Service Trace Viewer but the messages tab is empty.  C:\temp\Web_tracelog.svclog is being written but C:\temp\Web_messages.svclog is not.</p>
  
  <p>I'm probably missing something simple here, but can't put my finger on it.</p>
  
  <p>The Diagnostics tab of Microsoft Service Configuration Editor says everything is on.  Relevant portions of web.config follow.</p>
  
  <pre><code>&lt;system.diagnostics&gt;
    &lt;sources&gt;
     &lt;source name="System.ServiceModel" switchValue="Verbose,ActivityTracing"
      propagateActivity="true"&gt;
      &lt;listeners&gt;
       &lt;add type="System.Diagnostics.DefaultTraceListener" name="Default"&gt;
        &lt;filter type="" /&gt;
       &lt;/add&gt;
       &lt;add name="ServiceModelTraceListener"&gt;
        &lt;filter type="" /&gt;
       &lt;/add&gt;
      &lt;/listeners&gt;
     &lt;/source&gt;
     &lt;source name="System.ServiceModel.MessageLogging" switchValue="Verbose, ActivityTracing"&gt;
      &lt;listeners&gt;
       &lt;add type="System.Diagnostics.DefaultTraceListener" name="Default"&gt;
        &lt;filter type="" /&gt;
       &lt;/add&gt;
       &lt;add name="ServiceModelMessageLoggingListener"&gt;
        &lt;filter type="" /&gt;
       &lt;/add&gt;
      &lt;/listeners&gt;
     &lt;/source&gt;
    &lt;/sources&gt;
    &lt;sharedListeners&gt;
     &lt;add initializeData="C:\temp\Web_tracelog.svclog"
      type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
      name="ServiceModelTraceListener" traceOutputOptions="Timestamp"&gt;
      &lt;filter type="" /&gt;
     &lt;/add&gt;
     &lt;add initializeData="C:\temp\Web_messages.svclog"
      type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
      name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp"&gt;
      &lt;filter type="" /&gt;
     &lt;/add&gt;
    &lt;/sharedListeners&gt;
    &lt;trace autoflush="true" /&gt;
  &lt;/system.diagnostics&gt;
  
   &lt;system.serviceModel&gt;
    &lt;diagnostics&gt;
     &lt;messageLogging logEntireMessage="true" logMalformedMessages="true"
      logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" /&gt;
    &lt;/diagnostics&gt;
   &lt;/system.serviceModel&gt;
  </code></pre>