App.config 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
  5. </configSections>
  6. <startup>
  7. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
  8. </startup>
  9. <connectionStrings>
  10. <add name="XMLFilePath" connectionString="Resources/XMLData/SystemData.XML" />
  11. <add name="LogAppPath" connectionString="OTSSysMgrApp" />
  12. <add name="LogPath" connectionString="OTSSysMgrApp_OTSControl" />
  13. <add name="XMLFileName" connectionString="Config/ProData/HardwareConfig.xml" />
  14. <add name="DLLXMLFileName" connectionString="Config/ProData/BrukerDllVersion.xml" />
  15. </connectionStrings>
  16. <nlog>
  17. <!-- optional, add some variables
  18. https://github.com/nlog/NLog/wiki/Configuration-file#variables
  19. -->
  20. <variable name="myvar" value="myvalue" />
  21. <!--
  22. See https://github.com/nlog/nlog/wiki/Configuration-file
  23. for information on customizing logging rules and outputs.
  24. -->
  25. <targets async="true">
  26. <target type="File" name="file" fileName="${basedir}/Log/Nlogs/OTS ${shortdate}.log" layout="${longdate} ${message}" />
  27. <target name="control" type="RichTextBox" controlName="richTextBox_Nlog" formName="OutputNlog" maxLines="10000" autoScroll="true" useDefaultRowColoringRules="true" layout="${longdate} ${message}" />
  28. </targets>
  29. <rules>
  30. <!-- add your logging rules here -->
  31. <logger name="*" minlevel="Trace" writeTo="control" />
  32. <logger name="*" minlevel="Trace" writeTo="File" />
  33. </rules>
  34. </nlog>
  35. <system.windows.forms jitDebugging="true" />
  36. <runtime>
  37. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  38. <dependentAssembly>
  39. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  40. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  41. </dependentAssembly>
  42. </assemblyBinding>
  43. </runtime>
  44. </configuration>