Enable WCF Tracing

Prerequisites

  • Create a backup of the web.config file.
  • Make sure the path that you specify in the initializeData parameter exists.

Procedure

  • Add the following to the web.config file.
<source name="System.ServiceModel" switchValue="Error" propagateActivity="true"> 
   <listeners> 
      <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="C:\logs\Traces.svclog"/> 
   </listeners> 
</source>
About this Article
  • Created: 06/04/2017 2:58 am EDT
  • Last updated: 07/09/2017 2:59 am EDT
In This Article