Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <system.diagnostics>
  4. <trace autoflush="true" />
  5. <sources>
  6. <source name="Microsoft.Xrm.Tooling.Connector.CrmServiceClient"
  7. switchName="Microsoft.Xrm.Tooling.Connector.CrmServiceClient"
  8. switchType="System.Diagnostics.SourceSwitch">
  9. <listeners>
  10. <add name="console" type="System.Diagnostics.DefaultTraceListener" />
  11. <remove name="Default" />
  12. <add name ="fileListener" />
  13. </listeners>
  14. </source>
  15.  
  16. <source name="Microsoft.Xrm.Tooling.CrmConnectControl"
  17. switchName="Microsoft.Xrm.Tooling.CrmConnectControl"
  18. switchType="System.Diagnostics.SourceSwitch">
  19. <listeners>
  20. <add name="console" type="System.Diagnostics.DefaultTraceListener" />
  21. <remove name="Default" />
  22. <add name ="fileListener" />
  23. </listeners>
  24. </source>
  25. </sources>
  26. <switches>
  27. <!--
  28. Possible values for switches: Off, Error, Warning, Info, Verbose
  29. Verbose: includes Error, Warning, Info, Trace levels
  30. Info: includes Error, Warning, Info levels
  31. Warning: includes Error, Warning levels
  32. Error: includes Error level
  33. -->
  34. <add name="Microsoft.Xrm.Tooling.Connector.CrmServiceClient" value="Verbose" />
  35. <add name="Microsoft.Xrm.Tooling.CrmConnectControl" value="Verbose" />
  36. <add name="Microsoft.Xrm.Tooling.WebResourceUtility" value="Verbose" />
  37. </switches>
  38. <sharedListeners>
  39. <add name="fileListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="XRMToolingLogs.log" />
  40. <!--<add name="eventLogListener" type="System.Diagnostics.EventLogTraceListener" initializeData="XRMTooling" />-->
  41. </sharedListeners>
  42. </system.diagnostics>
  43. </configuration>
  44.  
  45. Microsoft.Xrm.Tooling.Connector.TraceControlSettings.TraceLevel = System.Diagnostics.SourceLevels.All;
  46. Microsoft.Xrm.Tooling.Connector.TraceControlSettings.AddTraceListener(new TextWriterTraceListener("log.txt"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement