logging.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "Serilog": {
  3. "MinimumLevel": {
  4. "Default": "Information",
  5. "Override": {
  6. "Microsoft": "Warning",
  7. "System": "Warning"
  8. }
  9. },
  10. "WriteTo": [
  11. {
  12. "Name": "Console",
  13. "Args": {
  14. "outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
  15. }
  16. },
  17. {
  18. "Name": "Async",
  19. "Args": {
  20. "configure": [
  21. {
  22. "Name": "File",
  23. "Args": {
  24. "path": "%JELLYFIN_LOG_DIR%//log_.log",
  25. "rollingInterval": "Day",
  26. "retainedFileCountLimit": 3,
  27. "rollOnFileSizeLimit": true,
  28. "fileSizeLimitBytes": 100000000,
  29. "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message}{NewLine}{Exception}"
  30. }
  31. }
  32. ]
  33. }
  34. }
  35. ],
  36. "Enrich": [ "FromLogContext", "WithThreadId" ]
  37. }
  38. }