Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <system.diagnostics>
- <trace autoflush="true" />
- <sources>
- <source name="Microsoft.Xrm.Tooling.Connector.CrmServiceClient"
- switchName="Microsoft.Xrm.Tooling.Connector.CrmServiceClient"
- switchType="System.Diagnostics.SourceSwitch">
- <listeners>
- <add name="console" type="System.Diagnostics.DefaultTraceListener" />
- <remove name="Default" />
- <add name ="fileListener" />
- </listeners>
- </source>
- <source name="Microsoft.Xrm.Tooling.CrmConnectControl"
- switchName="Microsoft.Xrm.Tooling.CrmConnectControl"
- switchType="System.Diagnostics.SourceSwitch">
- <listeners>
- <add name="console" type="System.Diagnostics.DefaultTraceListener" />
- <remove name="Default" />
- <add name ="fileListener" />
- </listeners>
- </source>
- </sources>
- <switches>
- <!--
- Possible values for switches: Off, Error, Warning, Info, Verbose
- Verbose: includes Error, Warning, Info, Trace levels
- Info: includes Error, Warning, Info levels
- Warning: includes Error, Warning levels
- Error: includes Error level
- -->
- <add name="Microsoft.Xrm.Tooling.Connector.CrmServiceClient" value="Verbose" />
- <add name="Microsoft.Xrm.Tooling.CrmConnectControl" value="Verbose" />
- <add name="Microsoft.Xrm.Tooling.WebResourceUtility" value="Verbose" />
- </switches>
- <sharedListeners>
- <add name="fileListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="XRMToolingLogs.log" />
- <!--<add name="eventLogListener" type="System.Diagnostics.EventLogTraceListener" initializeData="XRMTooling" />-->
- </sharedListeners>
- </system.diagnostics>
- </configuration>
- Microsoft.Xrm.Tooling.Connector.TraceControlSettings.TraceLevel = System.Diagnostics.SourceLevels.All;
- Microsoft.Xrm.Tooling.Connector.TraceControlSettings.AddTraceListener(new TextWriterTraceListener("log.txt"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement