appsettings.json 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. "WithReturnValue": true, // 配置是否包含返回值,默认true
  26. "ReturnValueThreshold": 0 // 配置返回值字符串阈值,默认0全量输出
  27. }
  28. },
  29. "AllowedHosts": "*"
  30. }