quarta-feira, 19 de fevereiro de 2014

Activate the WCF trace

Hi!

Sometimes you can't find out whata hell is going on with your WCF service.
In those times you should youse this amazing tool.

Put those tags at the and of your config file.

Really usefull!


<system.diagnostics>
   <sources>
       <source name="UserTraceSource" switchValue="Warning, ActivityTracing" >
          <listeners>
              <add name="xml"
                 type="System.Diagnostics.XmlWriterTraceListener"
                 initializeData="C:\logs\MyTrace.svclog" />
          </listeners>
       </source>
   </sources>
   <trace autoflush="true" /> 
</system.diagnostics>
 

Nenhum comentário:

Postar um comentário