23ed81b6b1
- Add build-error-resolution.md guide for CS0006 and IDE analyzer issues - Add rebuild-solution.ps1 script for clean/reliable builds - Suppress noisy IDE/StyleCop warnings in .editorconfig - Optimize BaseItemRepository grouping queries to use Min(Id) instead of FirstOrDefault, avoiding correlated subqueries and greatly improving DB performance - Add database-query-optimization.md explaining query changes and tuning - Enable EF Core SQL query logging, sensitive data, and detailed errors when log level is Debug (ServiceCollectionExtensions, logging.json) - Update readme with SQL logging instructions - Clarify git commit/ignore guidance and improve inline documentation
40 lines
1.4 KiB
JSON
40 lines
1.4 KiB
JSON
{
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"System": "Warning",
|
|
"Microsoft.EntityFrameworkCore.Database.Command": "Information"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
"outputTemplate": "[{Timestamp:HH:mm:ss.fff}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "Async",
|
|
"Args": {
|
|
"configure": [
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "%JELLYFIN_LOG_DIR%//log_.log",
|
|
"rollingInterval": "Day",
|
|
"retainedFileCountLimit": 3,
|
|
"rollOnFileSizeLimit": true,
|
|
"fileSizeLimitBytes": 100000000,
|
|
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"Enrich": [ "FromLogContext", "WithThreadId" ]
|
|
}
|
|
}
|