title: System Diagnostics Log Creation in WCF Calls not working
body: <p>I'm having a WCF Service for my WPF Application. I wish to monitor what are all the call which I was received from the Client Application.</p>
  
  <p>I read one article <a href="http://dotnetmentors.com/how-to-enable-wcf-tracing-and-wcf-message-loging.aspx" rel="nofollow">http://dotnetmentors.com/how-to-enable-wcf-tracing-and-wcf-message-loging.aspx</a> regarding WCF Tracing.</p>
  
  <p>I used the same code in my WCF Web.Config</p>
  
  <pre><code>&lt;system.diagnostics&gt;
      &lt;sources&gt;
        &lt;source name="System.ServiceModel"
              switchValue="All"
                  propagateActivity="true"&gt;
          &lt;listeners&gt;
            &lt;add name="messages"
            type="System.Diagnostics.XmlWriterTraceListener"
            initializeData="d:\logs\messages.svclog" /&gt;
          &lt;/listeners&gt;
        &lt;/source&gt;
      &lt;/sources&gt;
      &lt;trace autoflush="false" /&gt;
    &lt;/system.diagnostics&gt;
  </code></pre>
  
  <p>But I can't create any file in the said location <strong><code>d:\logs\messages.svclog</code></strong>.</p>
  
  <p>Kindly assist me how to get the log files.</p>