title: How to get Network tracing working in .NET
body: <p>I'm trying to get Network Tracing to show the network traffic from my application but it's not really showing the details that the tutorial said it would.  It will only show the ProcessID and TimeStamp, which I did specify I wanted but I also expected it to show more details of the HTTP request/response.
  I'm following the steps laid out here to:</p>
  
  <ul>
  <li><a href="https://msdn.microsoft.com/en-us/library/ms730064" rel="nofollow noreferrer">Configure Logging</a></li>
  <li><a href="https://msdn.microsoft.com/en-us/library/ty48b824(v=vs.110).aspx" rel="nofollow noreferrer">Configure Network Tracing</a></li>
  <li>Interpret Network Tracing</li>
  </ul>
  
  <p>However my output just looks like this:</p>
  
  <blockquote>
    <p>System.Net Information: 0 : [17464] Current OS installation type is
    'Client'.</p>
    
    <p>ProcessId=7732
        DateTime=2017-06-01T22:27:58.0125471Z</p>
  </blockquote>
  
  <p>But missing all the cool network info that I expected from reading the Interpret Network Tracing article. </p>
  
  <p>I do have trace enabled.</p>
  
  <p>Here is my pretty much copy-pasta Config:</p>
  
  <pre><code>  &lt;system.diagnostics&gt;
    &lt;sources&gt;
      &lt;source name="System.Net" tracemode="includehex" maxdatasize="1024"&gt;
        &lt;listeners&gt;
          &lt;add name="System.Net"/&gt;
        &lt;/listeners&gt;
      &lt;/source&gt;
      &lt;source name="System.Net.Cache"&gt;
        &lt;listeners&gt;
          &lt;add name="System.Net"/&gt;
        &lt;/listeners&gt;
      &lt;/source&gt;
      &lt;source name="System.Net.Http"&gt;
        &lt;listeners&gt;
          &lt;add name="System.Net"/&gt;
        &lt;/listeners&gt;
      &lt;/source&gt;
      &lt;source name="System.Net.Sockets"&gt;
        &lt;listeners&gt;
          &lt;add name="System.Net"/&gt;
        &lt;/listeners&gt;
      &lt;/source&gt;
      &lt;source name="System.Net.WebSockets"&gt;
        &lt;listeners&gt;
          &lt;add name="System.Net"/&gt;
        &lt;/listeners&gt;
      &lt;/source&gt;
    &lt;/sources&gt;
    &lt;switches&gt;
      &lt;add name="System.Net" value="Verbose"/&gt;
      &lt;add name="System.Net.Cache" value="Verbose"/&gt;
      &lt;add name="System.Net.Http" value="Verbose"/&gt;
      &lt;add name="System.Net.Sockets" value="Verbose"/&gt;
      &lt;add name="System.Net.WebSockets" value="Verbose"/&gt;
    &lt;/switches&gt;
    &lt;sharedListeners&gt;
      &lt;add name="System.Net"
        type="System.Diagnostics.TextWriterTraceListener"
        initializeData="C:\network.log"
        traceOutputOptions="ProcessId, DateTime"/&gt;
    &lt;/sharedListeners&gt;
    &lt;trace autoflush="true"/&gt;
    &lt;/system.diagnostics&gt;
  </code></pre>