appsettings.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_01FJ",
  12. //"ConnectionString": "Data Source=LAPTOP-D9OEIS1K\\SQLEXPRESS01;User ID=sa;Password=7166766;database=WMS_ZT_01FJ;Integrated Security=False;",
  13. "DbType": 1,
  14. "ConfigId": "fj",
  15. "IsAutoCloseConnection": true
  16. }
  17. ],
  18. "CSRedisConnectString": "10.30.37.2:6379,defaultDatabase=6",
  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. "EsbErpPushUrl": "",
  60. "RcsCreateTaskPushUrl": "",
  61. "RcsContinuePushUrl": "",
  62. "IWmsStockInPushUrl": "databus/publish/zhongTianOutStock",
  63. "IWmsStockOutPushUrl": "databus/publish/zhongTianIntoStock",
  64. "MoveReservedLocationCount": "1",
  65. "CopperLineToEmptyAreaCode": "21",
  66. "webapi": "http://localhost:10539",
  67. "maxweight": "950"
  68. }