appsettings.json 991 B

123456789101112131415161718192021222324252627282930
  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": 30
  16. },
  17. "Database": {
  18. "MinimumLevel": "Information"
  19. },
  20. "Monitor": {
  21. "GlobalEnabled": true, // 启用全局拦截日志
  22. "IncludeOfMethods": [], // 拦截特定方法,当GlobalEnabled=false有效
  23. "ExcludeOfMethods": [], // 排除特定方法,当GlobalEnabled=true有效
  24. "BahLogLevel": "Information" // Oops.Oh 和 Oops.Bah 业务日志输出级别
  25. }
  26. },
  27. "AllowedHosts": "*"
  28. }