title: NLog - ASP.Net Web API Tracing
body: <p>Trying to get some basic ASP.NET Web API Tracing happening using NLog.</p>
  
  <p>After a lot of searching the only documentation I could find is here: <a href="http://nlog-project.org/2010/09/02/routing-system-diagnostics-trace-and-system-diagnostics-tracesource-logs-through-nlog.html" rel="nofollow">http://nlog-project.org/2010/09/02/routing-system-diagnostics-trace-and-system-diagnostics-tracesource-logs-through-nlog.html</a></p>
  
  <p>The above isnt for the Web API but I have tried to adapt it, the problem seems to be in my Web.Config:</p>
  
  <pre><code>&lt;system.diagnostics&gt;
      &lt;sources&gt;
        &lt;source name="System.Web.Http.ApiController" switchValue="All"&gt;        
          &lt;listeners&gt;
            &lt;add name="nlog" /&gt;
          &lt;/listeners&gt;
        &lt;/source&gt;
      &lt;/sources&gt;
      &lt;sharedListeners&gt;
        &lt;add name="nlog" type="NLog.NLogTraceListener, NLog" /&gt;
      &lt;/sharedListeners&gt;
    &lt;/system.diagnostics&gt;
  </code></pre>
  
  <p>Any ideas why it's not working or references to an example?</p>