appsettings.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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=WMS_ZT_01CP",
  12. //"ConnectionString": "Data Source=.;User ID=sa;Password=Aa123456;Initial Catalog=WMS_ZT_01PT",
  13. "DbType": 1,
  14. "ConfigId": "cp",
  15. "IsAutoCloseConnection": true
  16. }
  17. ],
  18. "CSRedisConnectString": "127.0.0.1[:6379],password=123456,defaultDatabase=0",
  19. "Serilog": {
  20. "MinimumLevel": {
  21. "Default": "Debug", //最小记录日志级别
  22. "Override": {
  23. "Default": "Warning",
  24. "System": "Warning",
  25. "Microsoft": "Warning"
  26. }
  27. },
  28. "Enrich": [ "FromLogContext", "WithThreadId" ],
  29. "WriteTo": [
  30. {
  31. "Name": "Console",
  32. "Args": {
  33. "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
  34. }
  35. },
  36. {
  37. "Name": "Debug",
  38. "Args": {
  39. "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
  40. }
  41. },
  42. {
  43. "Name": "File",
  44. "Args": {
  45. "path": "Logs/log.txt",
  46. "formatter": "Serilog.Formatting.Compact.CompactJsonFormatter",
  47. "rollingInterval": "Day",
  48. "outputTemplate": "{ClientIP}{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}",
  49. "shared": true,
  50. "rollOnFileSizeLimit": true,
  51. "fileSizeLimitBytes": 102400000,
  52. "retainedFileCountLimit": 365
  53. }
  54. }
  55. ]
  56. },
  57. //"EsbMesPushUrl": "http://esb-pre.zt.net.cn:18080/esb/comm/api",
  58. "EsbMesPushUrl": "http://esb.zt.net.cn:18080/esb/comm/api",
  59. //"EsbMesPushUrl": "http://esb.zt.net.cn:18080/esb/comm/api",
  60. "EsbMQUri": "tcp://172.27.8.100:61616",
  61. //"EsbMQUri": "tcp://hamg1.zt.net.cn:61616,tcp://hamg2.zt.net.cn:61616",
  62. "RcsCreateTaskPushUrl": "",
  63. "RcsContinuePushUrl": "",
  64. "JKPushUrl": "http://esb.zt.net.cn:18080/esb/comm/api",
  65. "IWmsStockInPushUrl": "databus/publish/zhongTianOutStock",
  66. "IWmsStockOutPushUrl": "databus/publish/zhongTianIntoStock",
  67. "MoveReservedLocationCount": "1",
  68. "CopperLineToEmptyAreaCode": "21",
  69. "webapi": "https://localhost:7044",
  70. "maxweight": "950"
  71. }