appsettings.json 975 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
  3. "Urls": "https://*:5005",
  4. "Serilog": {
  5. "MinimumLevel": {
  6. "Default": "Information",
  7. "Override": {
  8. "System": "Warning",
  9. "Microsoft": "Warning",
  10. "Microsoft.Hosting.Lifetime": "Information",
  11. "Microsoft.EntityFrameworkCore": "Information"
  12. }
  13. },
  14. "WriteTo": [
  15. {
  16. "Name": "Console",
  17. "Args": {
  18. "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
  19. }
  20. },
  21. {
  22. "Name": "File",
  23. "Args": {
  24. "path": "logs/.log",
  25. "rollingInterval": "Day",
  26. "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
  27. }
  28. }
  29. ]
  30. },
  31. "AllowedHosts": "*"
  32. }