<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
  </startup>
  <system.diagnostics>
    <trace autoflush="true" />
    <sources>
      <source name="Microsoft.PowerPlatform.Tooling.BatchedTelemetry" switchName="Microsoft.PowerPlatform.Tooling.BatchedTelemetry" switchType="System.Diagnostics.SourceSwitch">
        <listeners>
          <remove name="Default" />
          <!--<add name="console" type="System.Diagnostics.DefaultTraceListener"/>-->
          <add name="pacTelemetryUploadLogFile" />
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add name="pacTelemetryUploadLogFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="pacTelemetryUpload.log" />
    </sharedListeners>
    <switches>
      <!-- 
      By default, for pacTelemetryUpload we only log the Warning/Errors.
      Possible values for switches: Off, Error, Warning, Information, Verbose
        Verbose:      includes Error, Warning, Information, Verbose levels
        Information:  includes Error, Warning, Information levels
        Warning:      includes Error, Warning levels
        Error:        includes Error level
      -->
      <add name="Microsoft.PowerPlatform.Tooling.BatchedTelemetry" value="Warning" />
    </switches>
  </system.diagnostics>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
      </dependentAssembly>
    </assemblyBinding>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>