title: Automatically log System.diagnostics.trace messages to an Nlog target
body: <p>Say you have C# trace messages all over an application. Something like:       </p>
  
  <pre><code>Trace.TraceInformation("Service Started"); 
  </code></pre>
  
  <p>How do you automatically log this to an nLog target without having to add code like the following to all the classes that have trace messages? </p>
  
  <pre><code>using NLog;
  private static Logger logger = LogManager.GetCurrentClassLogger();
  </code></pre>
  
  <p>Is there a way to do this without including traces produced by the .NET Framework itself, which <a href="http://nlog-project.org/2010/09/02/routing-system-diagnostics-trace-and-system-diagnostics-tracesource-logs-through-nlog.html" rel="noreferrer">this article</a> demonstrates how to do? </p>