appsettings.Development.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "Serilog": {
  3. "Using": [
  4. "Serilog.Enrichers.Span",
  5. "Serilog.Sinks.Console",
  6. "Serilog.Sinks.Exceptionless"
  7. ],
  8. "MinimumLevel": {
  9. "Default": "Information",
  10. "Override": {
  11. "Microsoft": "Warning",
  12. "Microsoft.Hosting.Lifetime": "Information",
  13. "Microsoft.AspNetCore.Authentication": "Debug",
  14. "Microsoft.AspNetCore": "Warning",
  15. "Microsoft.AspNetCore.SignalR": "Debug",
  16. "Microsoft.AspNetCore.Http.Connections": "Debug",
  17. "System": "Warning"
  18. }
  19. },
  20. "WriteTo": [
  21. {
  22. "Name": "Console",
  23. "Args": {
  24. //"outputTemplate": "time=\"{Timestamp:yyyy-MM-dd HH:mm:ss}\" level={Level:w3} category={SourceContext} trace={TraceId}{NewLine}msg=\"{Message:lj}\"{NewLine}error=\"{Exception}\"{NewLine}",
  25. "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}",
  26. "theme": "Serilog.Sinks.SystemConsole.Themes.ConsoleTheme::None, Serilog.Sinks.Console"
  27. }
  28. },
  29. {
  30. "Name": "Exceptionless"
  31. }
  32. //{
  33. // "Name": "File",
  34. // "Args": {
  35. // "path": "logs/log-.txt",
  36. // "rollingInterval": "Day"
  37. // }
  38. //}
  39. ],
  40. "Enrich": [ "FromLogContext", "WithSpan" ]
  41. },
  42. "AllowedHosts": "*",
  43. "DeviceConfigs": {
  44. "Address": "http://192.168.100.100/xml",
  45. "Authorize": true,
  46. "ReceiveKey": "E1BBD1BB-A269-44",
  47. "SendKey": "2A-BA92-160A3B1D",
  48. "Expired": 86400 //认证过期时间(秒)
  49. },
  50. "ConnectionStrings": {
  51. "Hotline": "server=db.fengwo.com;Database=hotline;Uid=dev;Pwd=fengwo11!!;SslMode=none;",
  52. "Redis": "192.168.100.223:6379"
  53. },
  54. "Swagger": true,
  55. "Cors": {
  56. "Origins": [ "http://localhost:8888", "http://admin.hotline.fw.com", "http://hotline.fw.com" ]
  57. },
  58. "WorkTimeSettings": {
  59. "MorningBegin": "08:00",
  60. "MorningEnd": "12:00",
  61. "AfterBegin": "15:00",
  62. "AfterEnd": "21:00",
  63. "WorkDay": [ 1, 2, 3, 4, 5, 0, 6 ],
  64. "WorkCategory": "08da9b9f-a35d-4ade-8ea7-55e8abbcdefd",
  65. "RestCategory": "08daa5f5-ac7a-4ced-8295-1c78baa15f9e"
  66. },
  67. "Exceptionless": {
  68. "ServerUrl": "http://192.168.100.217:5000",
  69. "ApiKey": "zrSsxjdFC1Uv2WBckZn3RYxjpKKdxfYAN50aFiuV"
  70. }
  71. }