开发者

How to enable tracing for WCF ajax enabled services?

How to enable tracing for WCF ajax enabled services? I have the following code:

 <system.diagnostics>
<sources>
  <source name="System.ServiceModel.MessageLogging">
    <listeners>
      <add name="messages"
      type="System.Diagnostics.XmlWriterTraceListener"
      initializeData="c:\logs\messages.svclog" />
    </listeners>
  </source>
</sources>
开发者_如何学JAVA

but it doesn't work.

thanks in advance.


Try like this:

<sources>
  <source name="System.ServiceModel"
          switchValue="Information, ActivityTracing"
          propagateActivity="true">
    <listeners>
      <add name="sdt"
          type="System.Diagnostics.XmlWriterTraceListener"
          initializeData="c:\logs\messages.svclog" />
    </listeners>
  </source>
</sources>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜