I have a client (a Unit Test) that call to WCF Service (hosting in debug mode in Console application).
I have an error in service but I dont know which. I need trace it, but not generate anything file svclog in client.
any suggestions , any sample code works ?
EDIT: I use logging EntLibrary 4.1. I think there are errors in configuration and WCF diagnostics Tracing not trace logs.
My config in Client is:
<system.diagnostics configSource="Config\diagnostics.config" />
<system.serviceModel>
<behaviors configSource="Config\system.servicemodel.behaviors.config" />
<bindings configSource="Config\system.servicemodel.bindings.config" />
<client configSource="Config\system.servicemodel.client.config" />
<diagnostics wmiProviderEnabled="false">
<messageLogging logEntireMessage="true"
logMalformedMessages="true"
logMessagesAtServiceLevel="true"
logMessagesAtTransportLevel="true"
/>
</diagnostics>
</system.serviceModel>
<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="Warning" propagateActivity="true" >
<listeners>
<add name="xml"/>
</listeners>
</source>
<source name="myUserTraceSource" switchValue="Warning, ActivityTracing">
<listeners>
<add name="xml"/>
</listeners>
</source>
</sources>
<sharedListeners>
<add name="xml"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData="TraceLog.svclog" />
</sharedListeners>
</system.diagnostics>
<loggingConfiguration configSource="Config\loggingConfiguration.config"/>
<exceptionHandling configSource="Config\exceptionHandling.config" />