App.config 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true"/>
  5. <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true"/>
  6. </configSections>
  7. <!--日志配置-->
  8. <loggingConfiguration name="" tracingEnabled="true" defaultCategory="General">
  9. <listeners>
  10. <add name="GeneralListener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  11. listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  12. fileName="General\rolling.log" formatter="Text Formatter" rollFileExistsBehavior="Increment"
  13. rollInterval="Day" maxArchivedFiles="0" traceOutputOptions="None" />
  14. <add name="SockListener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  15. listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  16. fileName="Sock\rolling.log" formatter="Text Formatter" rollInterval="Day" />
  17. <add name="ScanListener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  18. listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  19. fileName="Scan\rolling.log" formatter="Text Formatter" rollInterval="Day" />
  20. <add name="SqlListener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  21. listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  22. fileName="SQL\logSql.log" formatter="Text Formatter" rollInterval="Day" />
  23. </listeners>
  24. <formatters>
  25. <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  26. template="Timestamp: {timestamp}{newline}&#xA;Message: {message}"
  27. name="Text Formatter" />
  28. </formatters>
  29. <categorySources>
  30. <add switchValue="All" name="General">
  31. <listeners>
  32. <add name="GeneralListener" />
  33. </listeners>
  34. </add>
  35. <add switchValue="All" name="Sock">
  36. <listeners>
  37. <add name="SockListener" />
  38. </listeners>
  39. </add>
  40. <add switchValue="All" name="AdapterScan">
  41. <listeners>
  42. <add name="ScanListener" />
  43. </listeners>
  44. </add>
  45. <add switchValue="All" name="SQL">
  46. <listeners>
  47. <add name="SqlListener" />
  48. </listeners>
  49. </add>
  50. </categorySources>
  51. <specialSources>
  52. <allEvents switchValue="All" name="All Events" />
  53. <notProcessed switchValue="All" name="Unprocessed Category" />
  54. <errors switchValue="All" name="Logging Errors &amp; Warnings" />
  55. </specialSources>
  56. </loggingConfiguration>
  57. <dataConfiguration defaultDatabase="DefaultDB"/>
  58. <connectionStrings>
  59. <!--<add name="DefaultDB" connectionString="Data Source=172.19.20.65;
  60. Initial Catalog=HL7_Platform;
  61. Persist Security Info=True;
  62. Integrated Security=False;
  63. User ID=sa;Password=sa65" providerName="System.Data.SqlClient"/>
  64. <add name="HealthCare" connectionString="Data Source=172.19.20.65;
  65. Initial Catalog=HealthCare;
  66. Persist Security Info=True;
  67. Integrated Security=False;
  68. User ID=sa;Password=sa65" providerName="System.Data.SqlClient"/>-->
  69. <add name="DefaultDB" connectionString="Data Source=192.9.216.131;
  70. Initial Catalog=HL7_Platform;
  71. Persist Security Info=True;
  72. Integrated Security=False;
  73. User ID=sa;Password=SIjdrmyy2015" providerName="System.Data.SqlClient"/>
  74. <add name="HealthCare" connectionString="Data Source=192.9.216.131;
  75. Initial Catalog=HealthCare;
  76. User ID=sa;Password=SIjdrmyy2015" providerName="System.Data.SqlClient"/>
  77. </connectionStrings>
  78. <appSettings>
  79. <!--启动SQL日志-->
  80. <add key="LogSql" value="1"/>
  81. <add key="cert" value="aA1PB0cmzLIQkIiz5gji5eoNnpZ1Y5186h5b/huk5Fg="/>
  82. </appSettings>
  83. <startup>
  84. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  85. </startup>
  86. <!--<system.serviceModel>
  87. <bindings>
  88. <basicHttpBinding>
  89. <binding name="WebServiceSoap" />
  90. </basicHttpBinding>
  91. </bindings>
  92. <client>
  93. <endpoint address="http://localhost:8091/WebService.asmx" binding="basicHttpBinding"
  94. bindingConfiguration="WebServiceSoap" contract="ServiceTest.WebServiceSoap"
  95. name="WebServiceSoap" />
  96. </client>
  97. </system.serviceModel>-->
  98. </configuration>