title: C# System.Net trace log - only trace one method and ignore others?
body: <p>I'm using System.Net tracing as described here:</p>
  
  <p><a href="http://ferozedaud.blogspot.com/2009/08/tracing-with-systemnet.html" rel="nofollow">http://ferozedaud.blogspot.com/2009/08/tracing-with-systemnet.html</a></p>
  
  <p>But that traces every request made with HttpWebRequest.  The trace file is huge.  I only want to trace what happens when I am calling a certain URI eg:</p>
  
  <pre><code>https://api.example.com/oauth/RequestToken
  </code></pre>
  
  <p>Because connecting to this URI has problems after my web app has been running for several hours.</p>
  
  <p>I want to ignore all requests to other URIs eg:</p>
  
  <pre><code>https://api.example.com/Foo
  </code></pre>
  
  <p>Because these requests are working fine, and are filling up the log with data that I do not need.</p>