Skip to content

Instantly share code, notes, and snippets.

@KavenTheriault
Last active October 20, 2017 12:27
Show Gist options
  • Save KavenTheriault/5c254021e6027ed6cecf0a6ebc856d4f to your computer and use it in GitHub Desktop.
Save KavenTheriault/5c254021e6027ed6cecf0a6ebc856d4f to your computer and use it in GitHub Desktop.
Enabling Tracing in Windows Communication Foundation

Add this to config file

Make sure the destination folder exist

  <configuration>  
     <system.diagnostics>  
        <sources>  
              <source name="System.ServiceModel"   
                      switchValue="Information, ActivityTracing"  
                      propagateActivity="true">  
              <listeners>  
                 <add name="traceListener"   
                     type="System.Diagnostics.XmlWriterTraceListener"   
                     initializeData= "c:\log\Traces.svclog" />  
              </listeners>  
           </source>  
        </sources>  
     </system.diagnostics>  
  </configuration>  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment