appsettings.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "Logging": {
  3. "LogLevel": {
  4. "Default": "Information",
  5. "Microsoft.AspNetCore": "Warning"
  6. }
  7. },
  8. "AllowedHosts": "*",
  9. "ConnectionConfigs": [
  10. {
  11. "ConnectionString": "Data Source=10.30.44.50;User ID=sa;Password=P@ssw0rd;Initial Catalog=Ztest",
  12. //"ConnectionString": "Data Source=.;User ID=sa;Password=Aa123456;Initial Catalog=WMS_ZT_01HJ",
  13. "DbType": 1,
  14. "ConfigId": "hj",
  15. "IsAutoCloseConnection": true
  16. },
  17. {
  18. "ConnectionString": "Data Source=.;User ID=sa;Password=Aa123456;Initial Catalog=ptwms",
  19. "DbType": 1,
  20. "ConfigId": "pt",
  21. "IsAutoCloseConnection": true
  22. },
  23. {
  24. "ConnectionString": "Data Source=LAPTOP-D9OEIS1K\\SQLEXPRESS;User ID=sa;Password=7166766;Initial Catalog=fjwms",
  25. "DbType": 1,
  26. "ConfigId": "fj",
  27. "IsAutoCloseConnection": true
  28. },
  29. {
  30. "ConnectionString": "Data Source=.;User ID=sa;Password=Aa123456;Initial Catalog=sxwms",
  31. "DbType": 1,
  32. "ConfigId": "sx",
  33. "IsAutoCloseConnection": true
  34. },
  35. {
  36. "ConnectionString": "Data Source=.;User ID=sa;Password=Aa123456;Initial Catalog=cpwms",
  37. "DbType": 1,
  38. "ConfigId": "cp",
  39. "IsAutoCloseConnection": true
  40. }
  41. ],
  42. "CSRedisConnectString": "127.0.0.1[:6379],defaultDatabase=0",
  43. "Serilog": {
  44. "MinimumLevel": {
  45. "Default": "Debug", //最小记录日志级别
  46. "Override": {
  47. "Default": "Warning",
  48. "System": "Warning",
  49. "Microsoft": "Warning"
  50. }
  51. },
  52. "Enrich": [ "FromLogContext", "WithThreadId" ],
  53. "WriteTo": [
  54. {
  55. "Name": "Console",
  56. "Args": {
  57. "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
  58. }
  59. },
  60. {
  61. "Name": "Debug",
  62. "Args": {
  63. "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
  64. }
  65. },
  66. {
  67. "Name": "File",
  68. "Args": {
  69. "path": "Logs/log.txt",
  70. "formatter": "Serilog.Formatting.Compact.CompactJsonFormatter",
  71. "rollingInterval": "Day",
  72. "outputTemplate": "{ClientIP}{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}",
  73. "shared": true,
  74. "rollOnFileSizeLimit": true,
  75. "fileSizeLimitBytes": 102400000,
  76. "retainedFileCountLimit": 365
  77. }
  78. }
  79. ]
  80. },
  81. //"EsbMesPushUrl": "http://esb-pre.zt.net.cn:18080/esb/comm/api",
  82. "EsbMesPushUrl": "http://esb.zt.net.cn:18080/esb/comm/api",
  83. "EsbErpPushUrl": "",
  84. "RcsCreateTaskPushUrl": "",
  85. "RcsContinuePushUrl": "",
  86. "IWmsStockInPushUrl": "databus/publish/zhongTianOutStock",
  87. "IWmsStockOutPushUrl": "databus/publish/zhongTianIntoStock",
  88. "MoveReservedLocationCount": "1",
  89. "CopperLineToEmptyAreaCode": "21",
  90. "webapi": "https://localhost:7044",
  91. "maxweight": "950"
  92. }