appsettings.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. },
  18. "AllowedHosts": "*"
  19. //"Serilog": {
  20. // "MinimumLevel": {
  21. // "Default": "Information",
  22. // "Override": {
  23. // "System": "Warning",
  24. // "Microsoft": "Warning",
  25. // "Microsoft.Hosting.Lifetime": "Information",
  26. // "Microsoft.EntityFrameworkCore": "Information"
  27. // }
  28. // },
  29. // "WriteTo": [
  30. // {
  31. // "Name": "Console",
  32. // "Args": {
  33. // "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
  34. // }
  35. // },
  36. // {
  37. // "Name": "File",
  38. // "Args": {
  39. // "path": "logs/.log",
  40. // "rollingInterval": "Day",
  41. // "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
  42. // }
  43. // }
  44. // ]
  45. //},
  46. }