You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
965 B

5 years ago
  1. {
  2. "Logging": {
  3. "LogLevel": {
  4. "Default": "Information",
  5. "Microsoft": "Warning",
  6. "Microsoft.Hosting.Lifetime": "Information"
  7. }
  8. },
  9. "Serilog": {
  10. "MinimumLevel": {
  11. "Default": "Debug",
  12. "Override": {
  13. "Microsoft": "Information",
  14. "System": "Information"
  15. }
  16. },
  17. "WriteTo": [
  18. {
  19. "Name": "Console",
  20. "Args": {
  21. "theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console",
  22. "outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}"
  23. }
  24. },
  25. {
  26. "Name": "File",
  27. "Args": {
  28. "path": "log/log.log",
  29. "rollingInterval": "Day",
  30. "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}",
  31. "retainedFileCountLimit": 60,
  32. "buffered": true
  33. }
  34. }
  35. ]
  36. }
  37. }