开发者

Enabling WCF Tracing through user code

I have a WCF service, provided by a partner team, that I host in IIS. This service, in turn, calls a dll I provide.

Currently, the trace output tells me when the service receives a message, when it crosses the Activity Boundary to my dll, when my dll returns, and when the response message is sent.

From everything I've read, the trace should be telling me every method call from end to end, including what's going on in my own code.

The trace source is configured like so:

       <source name="System.ServiceModel" switchValue="Verbose, ActivityTracing"  propagateActivity="true">
           <listeners>
               <add name="myListener" />
           </listeners>
       </source>

while the listener is configured like this:

    <add name="myListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\logs\TraceLogs.svclog" />

Is it as simple as a confi开发者_JS百科guration change, or do I need to add a custom trace viewer that I write to, explicitly, for events in my code?

Thanks in advance :)


Here's documentation:

http://msdn.microsoft.com/en-us/library/ms228993.aspx

I think all you need to do is configure another <source> for your assembly. And as along as your dll is writing to trace it should work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜