appsettings.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
  3. "Urls": "https://*:5005",
  4. "Logging": {
  5. "LogLevel": {
  6. "Default": "Information",
  7. "Microsoft": "Warning",
  8. "Microsoft.Hosting.Lifetime": "Information"
  9. },
  10. "File": {
  11. "FileName": "logs/info.log",
  12. "Append": true,
  13. "MinimumLevel": "Information",
  14. "FileSizeLimitBytes": 5120,
  15. "MaxRollingFiles": 100
  16. },
  17. "Database": {
  18. "MinimumLevel": "Information"
  19. }
  20. },
  21. "AllowedHosts": "*"
  22. //"Serilog": {
  23. // "MinimumLevel": {
  24. // "Default": "Information",
  25. // "Override": {
  26. // "System": "Warning",
  27. // "Microsoft": "Warning",
  28. // "Microsoft.Hosting.Lifetime": "Information",
  29. // "Microsoft.EntityFrameworkCore": "Information"
  30. // }
  31. // },
  32. // "WriteTo": [
  33. // {
  34. // "Name": "Console",
  35. // "Args": {
  36. // "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
  37. // }
  38. // },
  39. // {
  40. // "Name": "File",
  41. // "Args": {
  42. // "path": "logs/.log",
  43. // "rollingInterval": "Day",
  44. // "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
  45. // }
  46. // }
  47. // ]
  48. //},
  49. }