appsettings.json 1.4 KB

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