appsettings.json 946 B

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