Tracing on a WCF mobile client

Oct 30, 2009 at 3:00 PM

Is there anything special required to enable WCF diagnostic tracing on mobile clients?  I have tried to turn it on and cannot find the logs anywhere.  If you specify the path for the log file as "c:\temp\log.svclog", will it correctly create the log file on the mobile device or are there special considerations for this case?

Here is the config I am using:

<system.serviceModel>

...

<diagnostics>
        <messageLogging logEntireMessage="true"
                        logMalformedMessages="true"
                        logMessagesAtServiceLevel="true"
                        logMessagesAtTransportLevel="true"
                        maxMessagesToLog="5000" />
      </diagnostics>
    </system.serviceModel>

<system.diagnostics>
    <trace autoflush="true" />
    <sources>
      <source name="System.ServiceModel" switchValue="Verbose" propagateActivity="true">
        <listeners>
          <add name="sharedListener"/>
        </listeners>
      </source>
      <source name="System.ServiceModel.MessageLogging" switchValue="Verbose">
        <listeners>
          <add name="sharedListener"/>
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add name="sharedListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="perfTest.svclog"/>
    </sharedListeners>
  </system.diagnostics>

Any thoughts? 

Thanks,

David

Coordinator
Nov 24, 2009 at 5:34 PM

As far as I know tracing is not supported by the WCF bits in the Compact Framework.