How to write a .svc file to asp.net Trace.axd

I'm trying to figure out how to make a 3.5 WCF service hosted under IIS write to an asp.net trace?

+3
source share
1 answer

I assume that you would add this to the web.config file:

<system.diagnostics>
   <sources>
      <source name="System.ServiceModel" switchValue="Information, ActivityTracing">
          <listeners>
              <add name="AspTraceListener"
                   type="System.Web.WebPageTraceListener" />
          </listeners>
      </source>
   </sources>
</system.diagnostics>
+1
source

Source: https://habr.com/ru/post/1778220/


All Articles