1: <system.diagnostics>
2: <trace autoflush="true"/>
3: <sources>
4: <source name="System.Net" maxdatasize="1024">
5: <listeners>
6: <add name="TraceFile"/>
7: </listeners>
8: </source>
9: <source name="System.Net.Sockets" maxdatasize="1024">
10: <listeners>
11: <add name="TraceFile"/>
12: </listeners>
13: </source>
14: <source name="System.ServiceModel" switchValue="Warning, ActivityTracing"
15: propagateActivity="true">
16: <listeners>
17: <add type="System.Diagnostics.DefaultTraceListener" name="Default">
18: <filter type="" />
19: </add>
20: <add name="ServiceModelTraceListener">
21: <filter type="" />
22: </add>
23: </listeners>
24: </source>
25: <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
26: <listeners>
27: <add type="System.Diagnostics.DefaultTraceListener" name="Default">
28: <filter type="" />
29: </add>
30: <add name="ServiceModelMessageLoggingListener">
31: <filter type="" />
32: </add>
33: </listeners>
34: </source>
35: </sources>
36: <sharedListeners>
37: <add initializeData="D:\MyLog\web_tracelog.svclog"
38: type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
39: name="ServiceModelTraceListener" traceOutputOptions="DateTime, Timestamp, ThreadId">
40: <filter type="" />
41: </add>
42: <add initializeData="D:\MyLog\web_messages.svclog"
43: type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
44: name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
45: <filter type="" />
46: </add>
47: <add name="TraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="D:\MyLog\trace.log"/>
48: </sharedListeners>
49: <switches>
50: <add name="System.Net" value="Verbose" />
51: <add name="System.Net.Sockets" value="Verbose" />
52: </switches>
53: </system.diagnostics>