xoxys.jellyfin/templates/opt/jellyfin/config/logging.json.j2
Robert Kaussow ec4f5cc447
Some checks failed
continuous-integration/drone/push Build is failing
rework portable installation
2021-04-18 17:48:02 +02:00

41 lines
1.5 KiB
Django/Jinja

{
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message:lj}{NewLine}{Exception}",
"restrictedToMinimumLevel": "{{ jellyfin_log_level_console }}"
}
},
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "File",
"Args": {
"path": "{{ jellyfin_log_dir }}/jellyfin.log",
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] {Message}{NewLine}{Exception}",
"restrictedToMinimumLevel": "{{ jellyfin_log_level_file }}",
"rollingInterval": "Day",
"retainedFileCountLimit": 3,
"rollOnFileSizeLimit": true,
"fileSizeLimitBytes": 100000000,
}
}
]
}
}
],
"Enrich": [ "FromLogContext", "WithThreadId" ]
}
}