appsettings.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. "Monitor": {
  21. "GlobalEnabled": true, // 启用全局拦截日志
  22. "IncludeOfMethods": [], // 拦截特定方法,当GlobalEnabled=false有效
  23. "ExcludeOfMethods": [] // 排除特定方法,当GlobalEnabled=true有效
  24. }
  25. },
  26. "AllowedHosts": "*"
  27. //"Serilog": {
  28. // "MinimumLevel": {
  29. // "Default": "Information",
  30. // "Override": {
  31. // "System": "Warning",
  32. // "Microsoft": "Warning",
  33. // "Microsoft.Hosting.Lifetime": "Information",
  34. // "Microsoft.EntityFrameworkCore": "Information"
  35. // }
  36. // },
  37. // "WriteTo": [
  38. // {
  39. // "Name": "Console",
  40. // "Args": {
  41. // "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
  42. // }
  43. // },
  44. // {
  45. // "Name": "File",
  46. // "Args": {
  47. // "path": "logs/.log",
  48. // "rollingInterval": "Day",
  49. // "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level:u3}{NewLine}【消息】{Message:lj}{NewLine}{NewLine}"
  50. // }
  51. // }
  52. // ]
  53. //},
  54. }